home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / srev13h.zip / TIMEFMT.DOC < prev    next >
Text File  |  1998-12-26  |  1KB  |  78 lines

  1. 15 Apr 1998
  2.  
  3. This contains a brief description of the options that may
  4. be included in the timefmt NCSA HTTPD server side include
  5. directive.  They are based on the strftime C function.
  6.  
  7. Basic example:
  8.   <!-- #config timefmt="%A ,%c  (%r) ==%n is%j day of year,
  9.                        %w day in%W week of%Y"  -->
  10. The above might return:
  11.     Saturday , 02:43:41 28 Sep 1996  (02:43:41:am) ==
  12.     272 day of year, 6 day in 39 week of 1996
  13.  
  14. Note that the %x substrings are replaced with time and date elements, as
  15. described below.
  16.  
  17.  
  18. %%   the % character
  19.  
  20. %a   Mon Tue ..  
  21.  
  22. %A   Monday Tuesday ..
  23.  
  24. %b   Jan Feb ..  
  25.  
  26. %B   January February  
  27.  
  28. %c   27 August 1988 10:15:55
  29.  
  30. %d   1 2 .. 31 day of month  
  31.  
  32. %D   05/27/89  
  33.  
  34. %e   1 2 .. 31 day of month, space padded 
  35.  
  36. %h   Jan Feb ..  
  37.  
  38. %H   00.. 23 hour 
  39.  
  40. %I   01 .. 12 hour 
  41.  
  42. %j   01..366 day of year  
  43.  
  44. %m   01 - 12 month  
  45.  
  46. %M   00...59 minute 
  47.  
  48. %n   <BR> (HTML new line)
  49.  
  50. %p   am or pm  (as appropriate)
  51.  
  52. %r   8:35pm  
  53.  
  54. %S   00-59 seconds  
  55.  
  56. %t   tab (best if  used in a <PRE> block)
  57.  
  58. %T   13:54:12  
  59.  
  60. %U   week # (00-53 -- 0 before first sunday of the year)
  61.  
  62. %W   week # (00-53 -- 0 before  first monday of the year)
  63.  
  64. %w   Day of week (0-6)
  65.  
  66. %x   27 August 1988  
  67.  
  68. %X   13:01:09  
  69.  
  70. %y   00-99 year  (2 digit)
  71.  
  72. %Y   1901 year  (4 digit)
  73.  
  74. %Z   Time zone, from the OS/2 TZ variable (e.g.; EST)
  75.  
  76.  
  77.  
  78.