Can anyone tell me how do i write a program to change the system date time using simple C program?
Please provide me a tutorial also.
I have to write a C function to achieve same as a JNI interface.
Standard C does not include functions to effect the operating environment - so no functions to do things like change your user name, change the background image, eject removable media or... change the system time.
To do those kinds of things, you need a 3rd party library, or you need to use your OS API.
Either way, no one can answer your question until you tell us what operating system you are using.
I am using cygwin on windows.
Its basically a gnu like environment with gcc and all the api's for windows