Convertir la valeur du timer en année, mois, jour, heure, minute et seconde

Author:


{filelink=13338}

  #include 
  #include 

 #define GB (-1)
 #define FR (0)

  int main(void)
  {
   time_t hr_t;
  struct tm * ptm;

  time ( &hr_t );

  ptm = gmtime ( &hr_t );

  puts ("Heure:");
  printf (" En Angleterre :  %2d:%02dn", (ptm->tm_hour+GB)%24, ptm->tm_min);
  printf (" En France: %2d:%02dn", (ptm->tm_hour+FR)%24, ptm->tm_min);

    return 0;
  }

Leave a Reply

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