Date And Time In C Program Tamil


#include<stdio.h>
#include<conio.h>
#include<time.h>
#include<dos.h>
void main()
{
  struct time t;
  struct date d;
  clrscr();
  gettime(&t);
  getdate(&d);
  printf("\nTime \n %d:%d:%d",t.ti_hour,t.ti_min,t.ti_sec);
  printf("\nDate \n %d/%d/%d",d.da_day,d.da_mon,d.da_year);
  getch();
}

Login To Download Source Code

Leave a Comment:

Login To Comment

List Of Programs


Goto Examples

Operators

Looping

Number Conversion

Pattern Design

Arrays

Matrix Examples

Sorting Examples

String Function

Change Case

String In C

Maths Functions

User Defined Functions

Recursive Functions

Pointer

Structure

File Concept

Calender Programming