Branch: Tag:

2000-11-13

2000-11-13 13:51:00 by Mirar (Pontus Hagland) <pike@sort.mirar.org>

added format_nice and format_nicez

Rev: lib/modules/Calendar.pmod/Time.pmod:1.8
Rev: lib/modules/Calendar.pmod/YMD.pmod:1.19

2540:    <object>string </object></returntype>    <arguments>    </arguments> + </method><method name='format_nice'> +  <returntype> +  <object>string </object></returntype> +  <arguments> +  </arguments> + </method><method name='format_nicez'> +  <returntype> +  <object>string </object></returntype> +  <arguments> +  </arguments>   </method><doc>   <text>   <p>Format the object into nice strings;
2558:   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 20:53:14 GMT" [4] + 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"
2570:   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] + smtp "Fri, 2 Jun 2000 20:53:14 +0100" [6]   </pre>   <tt>[1]</tt> note conflict (think 1 February 2003)   <br/><tt>[2]</tt> language dependent
2577:   <br/><tt>[4]</tt> as specified by the HTTP standard;   this is always in GMT, ie, UTC. The timezone calculations   needed will be executed implicitly. It is not language - dependent.</p> +  dependent. + <br/><tt>[5]</tt> adaptive to type and with special cases +  for yesterday, tomorrow and other years + <br/><tt>[6]</tt> as seen in Date: headers in mails</p>   </text>      </doc>