• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 13. Server Side Includes > Configurable Time Formats for SSI Output

13.4. Configurable Time Formats for SSI Output

Among its functions, the config SSI command allows you to specify the way the time and date are displayed with the timefmt argument. It takes a number of special values that are summarized in Table 13.1.

Table 13.1. SSI Time Formats
Status CodeMeaningExample
%aDay of the week abbreviationSun
%ADay of the weekSunday
%bMonth name abbreviation (also %h)Jan
%BMonth nameJanuary
%dDate01
%DDate as %m/%d/%y06/23/95
%eDate1 (not 01)
%H24-hour clock hour13
%I12-hour clock hour01
%jDecimal day of the year360
%mMonth number11
%MMinutes08
%pAM | PMAM
%rTime as %I:%M:%S %p09:21:13 PM
%SSeconds09
%T24-hour time as %H:%M:%S12:22:40
%UWeek of the year (also %W)37
%wDay of the week number (starting with Sunday=0)2
%yYear of the century96
%YYear1996
%ZTime zoneEST



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint