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

version» Context lines:

pike.git/lib/modules/Calendar.pmod/Time.pmod:187:   // default autopromote    TimeRange autopromote()    {    return this_object();    }       array(int(-1..1)) _compare(TimeRange with)    {   #define CMP(A,B) ( ((A)<(B))?-1:((A)>(B))?1:0 )    +  if (!objectp(with)) +  error("_compare: illegal argument 1, expected TimeRange: %O\n",with); +     if (with->is_timeofday_f)    {    array(int(-1..1)) cmp=with->_compare(this_object());       return ({-cmp[0],    -cmp[2],    -cmp[1],    -cmp[3]});    }    else if (with->is_timeofday)
pike.git/lib/modules/Calendar.pmod/Time.pmod:691:   //! method string format_ymd_xshort();   //! method string format_iso_week();   //! method string format_iso_week_short();   //! method string format_week();   //! method string format_week_short();   //! method string format_month();   //! method string format_month_short();   //! method string format_iso_time();   //! method string format_time();   //! method string format_time_short(); + //! method string format_iso_short();   //! method string format_time_xshort();   //! method string format_mtime();   //! method string format_xtime();   //! method string format_tod();   //! method string format_xtod();   //! method string format_mod();   //! method string format_nice();   //! method string format_nicez();   //! Format the object into nice strings;   //! <pre>
pike.git/lib/modules/Calendar.pmod/Time.pmod:719:   //! week_short "2000w22" [2]   //! month "2000-06"   //! month_short "200006" [1]   //! iso_time "2000-06-02 (Jun) -W22-5 (Fri) 20:53:14 UTC+1" [2]   //! ext_time "Friday, 2 June 2000, 20:53:14" [2]   //! ctime "Fri Jun 4 20:53:14 2000\n" [2] [3]   //! http "Fri, 02 Jun 2000 19:53:14 GMT" [4]   //! time "2000-06-02 20:53:14"   //! time_short "20000602 20:53:14"   //! time_xshort "000602 20:53:14" + //! iso_short "20000602T20:53:14"   //! mtime "2000-06-02 20:53"   //! xtime "2000-06-02 20:53:14.000000"   //! todz "20:53:14 CET"   //! todz_iso "20:53:14 UTC+1"   //! tod "20:53:14"   //! tod_short "205314"   //! xtod "20:53:14.000000"   //! mod "20:53"   //! nice "2 Jun 20:53", "2 Jun 2000 20:53:14" [2][5]   //! nicez "2 Jun 20:53 CET" [2][5]
pike.git/lib/modules/Calendar.pmod/Time.pmod:776:    string format_time()    {    return this_object()->format_ymd()+" "+format_tod();    }       string format_time_short()    {    return this_object()->format_ymd_short()+" "+format_tod();    }    +  string format_iso_short() +  { +  return this_object()->format_ymd_short()+"T"+format_tod(); +  } +     string format_time_xshort()    {    return this_object()->format_ymd_xshort()+" "+format_tod();    }       string format_mtime()    {    return this_object()->format_ymd()+" "+format_mod();    }