Diff for /parser3/src/classes/date.C between versions 1.92 and 1.93

version 1.92, 2013/10/02 20:57:28 version 1.93, 2015/04/08 18:08:52
Line 112  static int to_tm_year(int iyear) { Line 112  static int to_tm_year(int iyear) {
   
         tm tmIn;  memset(&tmIn, 0, sizeof(tmIn));          tm tmIn;  memset(&tmIn, 0, sizeof(tmIn));
         tmIn.tm_isdst=-1;          tmIn.tm_isdst=-1;
         if(!month)          if(!month) {
                 if(min) {                  if(min) {
                         year=mday=0; // HH:MM                          year=mday=0; // HH:MM
                         time_t t=time(0);                          time_t t=time(0);
Line 122  static int to_tm_year(int iyear) { Line 122  static int to_tm_year(int iyear) {
                         tmIn.tm_mday=tmNow->tm_mday;                          tmIn.tm_mday=tmNow->tm_mday;
                         goto date_part_set;                          goto date_part_set;
                 } else                  } else
                         hour=min=sec=msec=0; // not YYYY- & not HH: = just YYYY                                                           hour=min=sec=msec=0; // not YYYY- & not HH: = just YYYY
           }
         tmIn.tm_year=to_tm_year(pa_atoi(year));          tmIn.tm_year=to_tm_year(pa_atoi(year));
         tmIn.tm_mon=month?pa_atoi(month)-1:0;          tmIn.tm_mon=month?pa_atoi(month)-1:0;
         tmIn.tm_mday=mday?pa_atoi(mday):1;          tmIn.tm_mday=mday?pa_atoi(mday):1;

Removed from v.1.92  
changed lines
  Added in v.1.93


E-mail: