package
0.3.5
Repository: https://github.com/apus-run/van.git
Documentation: pkg.go.dev

# Functions

DateFromTime converts a `time.Time` to a `Date` representation.
DaysInMonth returns the number of days in the given month and year.
FirstWeekday returns the weekday (0 - Sunday through 6 - Saturday) of the first day of the month of the given year.
IsLeapYear returns whether the given year is a leap year.
MaxDaysInMonth returns the number of days in the given month in *any* year.
MustParse parses the given value into a `time.Time` according to the layout, or panics if there is a parse error.
StopTimer stops the given timer, taking care of any events that are still emitted due to a race condition.
TimeDiffDays returns the duration t1 - t2 in days.
TimerC obtains the time channel from a timer.
TimeToOffset calculates returns the time offset for current time zone.
WeekdayOfMonthToDayOfMonth converts a "weekday of month" value to the day of month for a given month and year.

# Constants

DaysInWeek is the number of days in a week.
HoursInDay is the number of hours in a day.
MaxWeekdayOfMonth returns the maximum "weekday of month" value for a month in any given year.
MinutesInHour is the number of minutes in an hour.
MonthsInYear is the number of months in a calendar year.
SecondsInMinute is the number of seconds in a minute.

# Variables

Max is the maximum value that can be represented in a `time.Time` object.
MaxProtoValid is the maximum value that can be represented in a `time.Time` object and converted to a proto timestamp without errors.

# Structs

Date is a representation of a time point (in some time zone) with second granularity.