Convertir une date en forme ‘String’ avec la fonction ‘asctime()’

Author:

 date
Download

  #include 
  #include 

  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
  */

Leave a Reply

Your email address will not be published. Required fields are marked *