|
|

|
 |
|
Date and Time Formatting
This section describes the behaviour of the strftime (Standard C Library) function,
as this function is used in the server side includes
feature of the FNWI Apache WEB server.
Timeformats can occur in WEB documents in the following way:
<!--#config timefmt="%A, %d-%b-%y %T %Z"-->
More examples are given in the server side includes
reference page.
Date and time strings may contain the following codes:
- %%
- same as the ``percent'' character (%)
- %a
- locale's abbreviated weekday name
- %A
- locale's full weekday name
- %b
- locale's abbreviated month name
- %B
- locale's full month name
- %c
- locale's appropriate date and time representation
- %C
- locale's date and time representation as produced by date (1)
- %d
- day of month ( 01 - 31 )
- %D
- date as %m/%d/%y
- %e
- day of month ( 1 - 31; single digits are preceded by a space)
- %h
- locale's abbreviated month name.
- %H
- hour ( 00 - 23 )
- %I
- hour ( 01 - 12 )
- %j
- day number of year ( 001 - 366 )
- %k
- hour ( 0 - 23; single digits are preceded by a blank)
- %l
- hour ( 1 - 12; single digits are preceded by a blank)
- %m
- month number ( 01 - 12 )
- %M
- minute ( 00 - 59 )
- %n
- same as \\n
- %p
- locale's equivalent of either AM or PM
- %r
- time as %I:%M:%S [AM|PM]
- %R
- time as %H:%M
- %S
- seconds ( 00 - 61 ), allows for leap seconds
- %t
- insert a tab
- %T
- time as %H:%M:%S
- %U
- week number of year ( 00 - 53 ), Sunday is the first day of week 1
- %w
- weekday number ( 0 - 6 ), Sunday = 0
- %W
- week number of year ( 00 - 53 ), Monday is the first day of week 1
- %x
- locale's appropriate date representation
- %X
- locale's appropriate time representation
- %y
- year within century ( 00 - 99 )
- %Y
- year as ccyy ( for example 1986)
- %Z
- time zone name or no characters if no time zone exists
|
|
|