Versions in this module Expand all Collapse all v1 v1.0.0 Feb 5, 2025 Changes in this version + const DateTimeRegexp + const RangeDateRegexp + const RangeRegexp + const Regexp + func FromString(value string) (datetime.Interface, error) + func New(year, month, day int) (datetime.Interface, error) + type Date struct + DateTime time.Time + Day int + Month int + Year int + func Now() *Date + func (d *Date) After(u datetime.Interface) bool + func (d *Date) Before(u datetime.Interface) bool + func (d *Date) Between(start, end datetime.Interface) bool + func (d *Date) Compare(u datetime.Interface) int + func (d *Date) Equal(u datetime.Interface) bool + func (d *Date) FromString(value string) (datetime.Interface, error) + func (d *Date) IsWeekend() bool + func (d *Date) Time() time.Time + func (d *Date) ToString() string + type Range struct + func NewRange(from, to string, start datetime.RangeStart, end datetime.RangeEnd) (*Range, error) + func NewRangeOptional(from, to string) (*Range, error) + func NewRangeStartOptional(from, to string) (*Range, error) + func NewRangeStartStrict(from, to string) (*Range, error) + func NewRangeStrict(from, to string) (*Range, error) + func RangeFromString(dateRange string) (*Range, error) + func (d *Range) End() datetime.RangeEnd + func (d *Range) From() Value + func (d *Range) Is(value any) bool + func (d *Range) Start() datetime.RangeStart + func (d *Range) String() string + func (d *Range) To() Value + type Value string + func StringToValue(value string) (Value, error) + func (d Value) Date() datetime.Interface v1.0.0-rc1 Feb 5, 2025 v1.0.0-beta1 Feb 5, 2025