Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DaysBetween ¶
DaysBetween return the number of whole days between a start date and end date
func EndOfMonth ¶
EndOfMonth returns the last day of the month of date.
func FormatAsZulu ¶
FormatAsZulu gets a ISO 8601 formatted date. The date is assumed to be in UTC ("Zulu time").
TODO: I think we can just use t.Format(time.RFC3339)?
func MonthsTo ¶
MonthsTo returns the number of months from the current date to the given date. The number of months is always rounded down, with a minimal value of 1.
For example this returns 2:
MonthsTo(time.Now().Add(24 * time.Hour * 70))
Dates in the past are not supported, and their behaviour is undefined!
func StartOfMonth ¶
StartOfMonth returns the first day of the month of date.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.