Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DayUnit is a unit code for day DayUnit = Unit("d") // WeekUnit is a unit code for week WeekUnit = Unit("w") // MonthUnit is a unit code for month MonthUnit = Unit("m") )
View Source
const UnitZero = UnitNum(0)
UnitZero is zero UnitNum
Variables ¶
This section is empty.
Functions ¶
Types ¶
type UnitNum ¶
type UnitNum uint32
UnitNum is a value of particular Unit from the zero unix time, for example 3d week or 2nd year
func MonthNumOf ¶
MonthNumOf returns month number of specified time t
Click to show internal directories.
Click to hide internal directories.