PHP Date and time chart

Advertisemen



Php date() with examples :

Type
Character
Description
Range or Examples
Hour
H
Hour, numeric, 24-hour clock, leading zero
00–23
Hour
h
Hour, numeric, 12-hour clock, leading zero
01–12
Hour
G
Hour, numeric, 24-hour clock
0–23
Hour
g
Hour, numeric, 12-hour clock
1–12
Hour
A
Ante/Post Meridiem designation
AM, PM
Hour
a
Ante/Post Meridiem designation
am, pm
Minute
i
Minute, numeric
00–59
Second
s
Second, numeric
00–59
Second
u
Microseconds, string
000000–999999
Day
d
Day of the month, numeric, leading zero
01–31
Day
j
Day of the month, numeric
1–31
Day
z
Day of the year, numeric
0–365
Day
N
Day of the week, numeric (Monday is 1) 
1–7
Day
w
Day of the week, numeric (Sunday is 0)
0–6
Day
S
English ordinal suffix for day of the month, textual
“st,” “th,” “nd,” “rd”
Week
D
Abbreviated weekday name
Mon, Tue, Wed, Thu, Fri, Sat, Sun
Week
l
Full weekday name
Monday, Tuesday, Wednesday Thursday, Friday, Saturday, Sunday
Week
W
ISO 8601:1988 week number in the year, numeric, week 1 is the first week that has at least 4 days in the current year, Monday is the first day of the week
1–53
Month
F
Full month name
January–December
Month
M
Abbreviated month name
Jan–Dec
Month
m
Month, numeric, leading zero
01–12
Month
n
Month, numeric
1–12
Month
t
Month length in days, numeric
28, 29, 30, 31
Year
Y
Year, numeric, including century
e.g., 2016
Year
y
Year without century, numeric
e.g., 16
Year
o
ISO 8601 year with century; numeric; the four- digit year corresponding to the ISO week number; same asYexcept if the ISO week number belongs to the previous or next year, that year is used instead
e.g. 2016
Year
L
Leap year flag (yes is 1)
0,1
Time zone
O
Hour offset from GMT, ±HHMM (e.g., −0400, +0230)
−1200–+1200
Time zone
P
Like O, but with a colon
−12:00 –+12:00
Time zone
Z
Seconds offset from GMT; west of GMT is negative, east of GMT is positive
-43200–50400
Time zone
e
Time zone identifier
e.g., America/New_York
Time zone
T
Time zone abbreviation
e.g., EDT
Time zone
I
Daylight saving time flag (yes is 1)
0,1
Compound
c
ISO 8601–formatted date and time
e.g., 2012-09-06T15:29:34+0000
Compound
r
RFC 2822–formatted date
e.g., Thu, 22 Aug 2002 16:01:07 +0200
Other
U
Seconds since the Unix epoch
0−2147483647
Other
B
Swatch Internet time
000–999


Advertisemen

Disclaimer: Gambar, artikel ataupun video yang ada di web ini terkadang berasal dari berbagai sumber media lain. Hak Cipta sepenuhnya dipegang oleh sumber tersebut. Jika ada masalah terkait hal ini, Anda dapat menghubungi kami disini.

Tidak ada komentar:

Posting Komentar

© Copyright 2017 Tutorial Unity 3D