#include <time.h> #include <stdio.h> int main(void) { time_t now; time( &now ); //Afficher la date GMT en Format 24 printf( "Date: %.24s GMTn", asctime( gmtime( &now ) )); return 0; } /* Date: Thu Jan 05 14:57:39 2012 GMT */ |
----------------------------------------------------------------------------