1.0.2 • Published 3 years ago

@wilde/util v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

####days日期方法 返回一个数组,数组下标0为时间段的开始,下标1为时间段的结束

days.today

days.thisWeek

days.thisMonth

days.thisSeason

days.thisYear

days.someHour

days.someDay

####days方法接受的格式

InputExampleDescription
YY01Two-digit year
YYYY2001Four-digit year
M1-12Month, beginning at 1
MM01-12Month, 2-digits
MMMJan-DecThe abbreviated month name
MMMMJanuary-DecemberThe full month name
D1-31Day of month
DD01-31Day of month, 2-digits
H0-23Hours
HH00-23Hours, 2-digits
h1-12Hours, 12-hour clock
hh01-12Hours, 12-hour clock, 2-digits
m0-59Minutes
mm00-59Minutes, 2-digits
s0-59Seconds
ss00-59Seconds, 2-digits
S0-9Hundreds of milliseconds, 1-digit
SS00-99Tens of milliseconds, 2-digits
SSS000-999Milliseconds, 3-digits
Z-05:00Offset from UTC
ZZ-0500Compact offset from UTC, 2-digits
AAM PMPost or ante meridiem, upper-case
aam pmPost or ante meridiem, lower-case
Do1st... 31stDay of Month with ordinal
X1410715640.579Unix timestamp
X1410715640579Unix ms timestamp
1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago