package
0.200.1
Repository: https://github.com/invopop/gobl.git
Documentation: pkg.go.dev

# Functions

DateAfter returns a validation rule which checks to ensure the date is *after* the provided date.
DateBefore is used during validation to ensure the date is before the value passed in.
DateNotZero ensures the date is not a zero value.
DateOf returns the Date in which a time occurs in the time's location.
DateTimeAfter returns a validation rule which checks to ensure the date is *after* the provided date.
DateTimeBefore is used during validation to ensure the date is before the value passed in.
DateTimeNotZero ensures the date is not a zero value.
DateTimeOf returns the DateTime from the provided time.
MakeDate provides a new date instance.
MakeDateTime provides a new date time instance.
NewDate provides a pointer to a new date instance.
NewDateTime provides a pointer to a new date time instance.
ThisSecond produces a new date time instance for the current UTC time to the nearest second.
ThisSecondIn provides a new date time using the current time from the provided location as a reference.
Today generates a new date instance for today.
TodayIn generates a new date instance for today in the given location.

# Structs

Date represents a simple date without time used most frequently with business documents.
DateTime represents a combination of date and time without location specific information nor support for millisecond precision.
Period represents two dates with a start and finish.