什么是Week year

/ 0评 / 0

一周,从周日开始,周六结束,如果这周某一天是跨年,那么这一周,会算入下一年。 比如: 2017-12-31为周日,刚好是2017最后一周并跨年,那么YYYY得出的结果就是2018。而M和L的话,这涉及到不同国家之间对月份的拼写。

例如波兰这个国家的7月有lipca和lipiec这两个写法,不同的语境 用不同的写法,可以参考这篇文章对波兰7月的解析( https://www.ortograf.pl/watpliwosci-jezykowe/jak-piszemy-5-lipiec-czy-5-lipca )

LetterDate or Time ComponentPresentationExamples
GEra designator (纪元)TextAD
yYearYear1996; 96
YWeek year (当天所在周的所属年份)Year2009; 09
MMonth in year (context sensitive)MonthJuly; Jul; 07
LMonth in year (standalone form)MonthJuly; Jul; 07
wWeek in yearNumber27
WWeek in monthNumber2
DDay in yearNumber189
dDay in monthNumber10
FDay of week in monthNumber2
EDay name in weekTextTuesday; Tue
uDay number of week (1 = Monday, ..., 7 = Sunday)Number1
aAm/pm markerTextPM
HHour in day (0-23)Number0
kHour in day (1-24)Number24
KHour in am/pm (0-11)Number0
hHour in am/pm (1-12)Number12
mMinute in hourNumber30
sSecond in minuteNumber55
SMillisecondNumber978
zTime zoneGeneral time zonePacific Standard Time; PST; GMT-08:00
ZTime zoneRFC 822 time zone-0800
XTime zoneISO 8601 time zone-08; -0800; -08:00

发表评论

电子邮件地址不会被公开。 必填项已用*标注