Aditya Share
v.01
today : | at : | safemode : ON
> / home / facebook / twitter / exit /
name author perms com modified label

C Program to Set/Change the Current System Date Aditya Illusion rwxr-xr-x 0 23.00

Filename C Program to Set/Change the Current System Date
Permission rw-r--r--
Author Aditya Illusion
Date and Time 23.00
Label
Action


This program can be used to set the system date or to change the current system date.
 
 
 
#include <stdio.h>
#include <process.h>
#include <dos.h> int main(void)
{
struct date reset;
struct date save_date;
getdate(&save_date);
printf(“Original date:\n”);
system(“date”);
reset.da_year = 2001;
reset.da_day = 1;
reset.da_mon = 1;
setdate(&reset);
printf(“Date after setting:\n”);
system(“date”);
setdate(&save_date);
printf(“Back to original date:\n”);
system(“date”);
return 0;
}

0 komentar:

Posting Komentar

 

Indonesia Is The Best © 2012 Aditya Share
VB (Yudi Aditya) Template design by Aditya Share