php strtotime函数参数详解[备忘](3 位领导批示)

1.月,日英文名及其常用缩写清单:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
january
february
march
april
may
june
july
august
september
sept
october
november
december
sunday
monday
tuesday
tues
wednesday
wednes
thursday
thur
thurs
friday
saturday

2.时间参数和祥细描述:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
 
am: the time is before noon 上午
 
pm: the time is noon or later 下午
 
year: one year; for example, “next year” 年,比如“next year”代表明年
 
month: one month; for example, “last month” 月,比如“last month”代表上一月
 
fortnight: two weeks; for example, “a fortnight ago” 两周,比如“a fortnight ago”代表两周前
 
week: one week 周
 
day: a day 天
 
hour: an hour 小时
 
minute: a minute 分钟
 
min: same as minute 同“minute”
 
second: a second 秒
 
sec: same as second 同“second”

3.相关和顺序说明:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
 
+n/-n:以当前时间算,加个减指定的时间,比如”+1 hour”是指当前时间加一小时
 
ago:time relative to now; such as “24 hours ago”  以当前时间往前算,比如”24 hours ago”代表“24小时前”
 
tomorrow: 24 hours later than the current date and time 以当前时间(包括日期和时间)为标准,明天同一时间
 
yesterday: 24 hours earlier than the current date and time 以当前时间(包括日期和时间)为标准,昨天同一时间
 
today: the current date and time 当前时间(包括日期和时间)
 
now: the current date and time 当前时间(包括日期和时间)
 
last: modifier meaning “the preceding”; for example, “last tuesday” 代表“上一个”,比如“last tuesday”代表“上周二同一时间”
 
this: the given time during the current day or the next occurrence of the given time; for example, “this 7am” gives the timestamp for 07:00 on the current day, while “this week” gives the timestamp for one week from the current time 当天的指定时间或下面一个时间段的时间戳,比如“this 7am”给出当天7:00的时间戳,而“this week”给出的是从当前时间开始的一整周的时间戳,也就是当前时间
 
next: modifier meaning the current time value of the subject plus one; for example, “next hour” 当前时间加上指定的时间,比如“next hour”是指当前时间加上一小时,即加3600
 
first: ordinal modifier, esp. for months; for example, “May first” (actually, it’s just the same as next)
 
third: see first (note that there is no “second” for ordinality, since that would conflict with the second time value)
 
fourth: see first
 
fifth: see first
 
sixth: see first
 
seventh: see first
 
eighth: see first
 
ninth: see first
 
tenth: see first
 
eleventh: see first
 
twelfth: see first

4.时区描述:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
 
gmt: Greenwich Mean Time
 
ut: Coordinated Universal Time
 
utc: same as ut
 
wet: Western European Time
 
bst: British Summer Time
 
wat: West Africa Time
 
at: Azores Time
 
ast: Atlantic Standard Time
 
adt: Atlantic Daylight Time
 
est: Eastern Standard Time
 
edt: Eastern Daylight Time
 
cst: Central Standard Time
 
cdt: Central Daylight Time
 
mst: Mountain Standard Time
 
mdt: Mountain Daylight Time
 
pst: Pacific Standard Time
 
pdt: Pacific Daylight Time
 
yst: Yukon Standard Time
 
ydt: Yukon Daylight Time
 
hst: Hawaii Standard Time
 
hdt: Hawaii Daylight Time
 
cat: Central Alaska Time
 
akst: Alaska Standard Time
 
akdt: Alaska Daylight Time
 
ahst: Alaska-Hawaii Standard Time
 
nt: Nome Time
 
idlw: International Date Line West
 
cet: Central European Time
 
met: Middle European Time
 
mewt: Middle European Winter Time
 
mest: Middle European Summer Time
 
mesz: Middle European Summer Time
 
swt: Swedish Winter Time
 
sst: Swedish Summer Time
 
fwt: French Winter Time
 
fst: French Summer Time
 
eet: Eastern Europe Time, USSR Zone 1
 
bt: Baghdad Time, USSR Zone 2
 
zp4: USSR Zone 3
 
zp5: USSR Zone 4
 
zp6: USSR Zone 5
 
wast: West Australian Standard Time
 
wadt: West Australian Daylight Time
 
cct: China Coast Time, USSR Zone 7
 
jst: Japan Standard Time, USSR Zone 8
 
east: Eastern Australian Standard Time
 
eadt: Eastern Australian Daylight Time
 
gst: Guam Standard Time, USSR Zone 9
 
nzt: New Zealand Time
 
nzst: New Zealand Standard Time
 
nzdt: New Zealand Daylight Time
 
idle: International Date Line East

分享到新浪微博 推荐到豆瓣 分享到 Google Reader 加入Google书签 嘀咕一下 分享到饭否 分享到做啥 分享到叽歪 分享到鲜果 加入QQ书签 加入百度搜藏 加入雅虎书签 分享到垦一垦

  1. 3
    银子

    @玫瑰情 手册(文档)上有这个?[face1]

  2. 2
    玫瑰情

    php函数库.为何不直接查看文档呢

  3. 1
    玫瑰情

    php函数库.为何不查看文档呢

请领导指示

验证码 (必须)

Additional comments powered by BackType

随机显示的10篇日志

评论最多的10篇日志

浏览最多的10篇日志