Fork me on GitHub

Changeset 553 in svn


Ignore:
Timestamp:
Feb 23, 2010, 2:39:48 AM (15 years ago)
Author:
Xavier Rouby
Message:

affichage horaire plus joli

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SmearUtil.cc

    r551 r553  
    17891789 
    17901790  char temp[100];
    1791   sprintf(temp,"%i/%i/%i %i:%i:%i",timeinfo->tm_mday,timeinfo->tm_mon+1,timeinfo->tm_year+1900,timeinfo->tm_hour,timeinfo->tm_min,timeinfo->tm_sec);
     1791  //sprintf(temp,"%i/%i/%i %i:%i:%i",timeinfo->tm_mday,timeinfo->tm_mon+1,timeinfo->tm_year+1900,timeinfo->tm_hour,timeinfo->tm_min,timeinfo->tm_sec);
     1792  sprintf(temp,"%i",timeinfo->tm_mday);
     1793  if(timeinfo->tm_mon+1<10) sprintf(temp,"%s/0%d",temp,timeinfo->tm_mon+1);else sprintf(temp,"%s/%d",temp,timeinfo->tm_mon+1);
     1794  sprintf(temp,"%s/%d %d",temp,timeinfo->tm_year+1900,timeinfo->tm_hour);
     1795  if(timeinfo->tm_min<10)   sprintf(temp,"%s:0%d",temp,timeinfo->tm_min);  else sprintf(temp,"%s:%d",temp,timeinfo->tm_min);
     1796  if(timeinfo->tm_sec<10)   sprintf(temp,"%s:0%d",temp,timeinfo->tm_sec);  else sprintf(temp,"%s:%d",temp,timeinfo->tm_sec);
    17921797  string tempstring(temp);
    17931798  return tempstring;
Note: See TracChangeset for help on using the changeset viewer.