Parameter
|
Description
|
Returns
|
a
|
lowercase displays pm or am, depending on the time. |
"Am" or "pm"
|
A
|
upper-case, brings the PM or AM, depending on the time. |
"AM" or "PM"
|
D
|
the current day, 2 digits with the first zero. |
"01" to "31"
|
F
|
month, the full name of the test |
"January"
|
g
|
clock, 12-hour format, without the first zero. |
"1" to "12"
|
G
|
clock, 24-hour format, without the first zero. |
"0" to "24"
|
h
|
clock, 12-hour format, the first zero. |
"01" to "12"
|
H
|
clock, 24-hour format, the first zero. |
"00" to "24"
|
i
|
minutes |
"00" to "59"
|
I (capital i)
|
1, if the day, 0 if the night |
"1" or "0"
|
j
|
the current day, 2 digits without the first zero. |
from "1" to "31"
|
l (small L)
|
day of the week, the full name of the text |
"Friday"
|
L
|
1 - a leap year, 0 otherwise |
"1" or "0"
|
m
|
month, the first zero. |
"01" to "12"
|
M
|
month, first 3 letters of the name. |
"Jan"
|
n
|
month without the first zero. |
"1" to "12"
|
r
|
date format and time in RFC 822 |
"Thu, 21 Dec 2000 16:01:07 0200"
|
s
|
seconds. |
"00" to "59"
|
S
|
British ending, depending on dates. |
"Th" or "nd"
|
t
|
number of days this month. |
"28" to "31"
|
T
|
All times are installed on the machine. |
"MDT"
|
U
|
number of seconds since the beginning of the century. |
"999610283"
|
w
|
day of the week, numeric |
"0" (Sunday) to "6" (Saturday)
|
Y
|
year, 4 digits |
"2001"
|
y
|
year, 2 digits |
"99"
|
z
|
day of the year |
"0" to "365"
|
Z
|
time zone from GMT in seconds, to the west is negative, to the east is positive. |
"-43200" To "43200"
|