Documentation ¶
Index ¶
Constants ¶
View Source
const ( Day = time.Hour * 24 // These values are not precise, probably why the time package does not implement them // We need them for because xsd:duration has them Month = Day * 30 Year = Day * 356 )
Extending time constants with the values for day, week, month, year
Variables ¶
This section is empty.
Functions ¶
func Unmarshal ¶
Unmarshal takes a byte array and unmarshals it to a time.Duration value It is used to parse values in the following format: -PuYuMuDTuHuMufS, where:
- - shows if the duration is negative
- P is the duration tag
- T is the time tag separator
- Y,M,D,H,M,S are tags for year, month, day, hour, minute, second values
- u is an unsigned integer value
- uf is an unsigned float value (just for seconds)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.