-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.go
32 lines (29 loc) · 944 Bytes
/
constants.go
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
package isoduration
const (
// PERIOD is constant that defines period designators
PERIOD = 'P'
// TIME is constant that defines time designators
TIME = 'T'
// YEAR is constant that defines year designators
YEAR = 'Y'
// MONTH is constant that defines month designators
MONTH = 'M'
// WEEK is constant that defines week designators
WEEK = 'W'
// DAY is constant that defines day designators
DAY = 'D'
// HOUR is constant that defines hour designators
HOUR = 'H'
// MINUTE is constant that defines minute designators
MINUTE = 'M'
// SECOND is constant that defines second designators
SECOND = 'S'
// DayHours is constant that defines number of hours in a day
DayHours = 24
// WeekDays is constant that defines number of days in a week
WeekDays = 7
// YearDays is constant that defines number of days in a year
YearDays = 365
// MonthDays is constant that defines number of days in a month
MonthDays = YearDays / 12
)