pike.git / lib / modules / Calendar.pmod / YMD.pmod

version» Context lines:

pike.git/lib/modules/Calendar.pmod/YMD.pmod:368:   //! week_short "2000w22" [2]   //! month "2000-06"   //! month_short "200006" [1]   //! iso_time "2000-06-02 (Jun) -W22-5 (Fri) 00:00:00 UTC+1" [2]   //! ext_time "Friday, 2 June 2000, 00:00:00" [2]   //! ctime "Fri Jun 2 00:00:00 2000\n" [2] [3]   //! http "Fri, 02 Jun 2000 00:00:00 GMT" [4]   //! time "2000-06-02 00:00:00"   //! time_short "20000602 00:00:00"   //! time_xshort "000602 00:00:00" + //! iso_short "2000-06-02T00:00:00"   //! mtime "2000-06-02 00:00"   //! xtime "2000-06-02 00:00:00.000000"   //! tod "00:00:00"   //! tod_short "000000"   //! todz "00:00:00 CET"   //! todz_iso "00:00:00 UTC+1"   //! xtod "00:00:00.000000"   //! mod "00:00"   //! </pre>   //! <tt>[1]</tt> note conflict (think 1 February 2003)
pike.git/lib/modules/Calendar.pmod/YMD.pmod:496:    string format_time()    {    return format_ymd()+" 00:00:00";    }       string format_time_short()    {    return format_ymd_short()+" 00:00:00";    }    +  string format_iso_short() +  { +  return format_ymd_short()+"T00:00:00"; +  } +     string format_time_xshort()    {    return format_ymd_xshort()+" 00:00:00";    }       string format_mtime()    {    return format_ymd_short()+" 00:00";    }   
pike.git/lib/modules/Calendar.pmod/YMD.pmod:2166:    if (what->rules->timezone->is_dst_timezone ||    rules->timezone->is_dst_timezone)    {    int u0=what->utc_offset()-what->day()->utc_offset();    int u1=res->utc_offset()-utc_offset();   // werror("%O %O\n",u0,u1);    if (u1-u0)    res=res->add(u1-u0,Second);    else    res=res->autopromote(); +  +  if (!force) +  { +  if (res->hour_no()!=what->hour_no()) +  error("place: no such time of " +  "day (DST shift)\n",what,this_object());    } -  +  }    else    res=res->autopromote();       return res;    }       if (what->is_year)    return year()->place(what,force); // just fallback    if (what->is_month)    return month()->place(what,force); // just fallback