Package ratadie represents calendar dates as fixed integers, as specified in Dershowitz and Reingold's Calendrical Calculations.
A Day represents a given calendar date as a fixed integer, as specified in Dershowitz and Reingold's Calendrical Calculations. Day(1) is Jan 1 of year 1 in the proleptic Gregorian calendar. Representable dates range from Jun 22, -5879610 to Jul 11, 5879611.
Date returns the Day for the given year, month, and day. The result of passing out-of-range month or day values is undefined. Do not use this function for month arithmetic.
Parse parses a formatted string and returns the day value it represents. It is a convenience wrapper around time.Parse.
Note that time and location may be specified in the format, but are completely ignored.
Time is equivalent to calling Date(t.Date()). Note that time and location are completely ignored.
Today returns today's date. It is equivalent to Time(time.Now()).
Date returns the Gregorian year, month, and day for rd.
Format is just a convenience for rd.Time().Format(layout)
Time returns a UTC time value for midnight on the day represented by rd.
TimeIn returns a time value for midnight in the given location on the day represented by rd.
Weekday returns the day of the week specified by rd.