These are parameters, descriptions and resulting outputs to the 'ctime' function in Apache
You can place any number of the following symbols in an expression interspersed with formatting characters.
The output is acheived on your webpage using the following tag <!--#echo var="DATE_LOCAL" -->
Note that if the time zone on the server is changed, Apache may not see it until Apache is restarted.
<!--#config timefmt="%A-%B, %Y %T" --> = Friday-May, 2024 22:27:43
Value | Meaning | |
default | Friday, 03-May-2024 22:27:43 MDT | |
%a | Abbreviated weekday name | Fri |
%A | Full weekday name | Friday |
%b | Abbreviated month name | May |
%B | Full month name | May |
%c | 'Locale' formatted date and time | Fri May 3 22:27:43 2024 |
%C | Default formatted date and time | (no longer supported) |
%d | Day of month | 03 (01 - 31) |
%D | Date as %m/%d/%y | 05/03/24 |
%e | Day of month | 3 (1 - 31) |
%H | Hour (00 - 23) | 22 |
%I | Hour (01 - 12) | 10 |
%j | Day of year | 124 (001 to 365) |
%m | Month of year | 05 (01 - 12) |
%M | Minute (00 to 59) | 27 |
%n | Insert new line | (no longer supported) |
%p | String containing AM or PM | PM |
%r | Time as %I:%M:%S | 10:27:43 PM |
%R | Time as %H:%M | 22:27 |
%S | Seconds (00 to 59) | 43 |
%t | Insert a TAB character | (no longer supported) |
%T | Time as %H:%M:%S | 22:27:43 |
%U | Week number within year | 17 (00 to 53) (Sunday = first day) |
%w | Day number | 5 (0 - 6) (Sunday = 0) |
%W | Week number within year | 18 (00 to 53) (Monday = first day) |
%x | Country specific date format | 05/03/24 |
%X | Country specific time format | 22:27:43 |
%y | Year within century | 24 (2 digits) |
%Y | Year as YYYY | 2024 (4 digits) |
%Z | Time zone name | MDT |