Versions in this module Expand all Collapse all v1 v1.0.0 Feb 5, 2025 Changes in this version + const DateRegexp + const DateTimeRegexp + const RangeRegexp + const Regexp + const TimeRegexp + func FromString(value string) (datetime.Interface, error) + func New(hour, minute, second int) (datetime.Interface, error) + 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() datetime.ValueInterface + func (d *Range) Is(value any) bool + func (d *Range) Start() datetime.RangeStart + func (d *Range) String() string + func (d *Range) To() datetime.ValueInterface + type Time struct + DateTime goTime.Time + Hour int + Minute int + Second int + func Now() *Time + func (t *Time) After(u datetime.Interface) bool + func (t *Time) Before(u datetime.Interface) bool + func (t *Time) Between(start, end datetime.Interface) bool + func (t *Time) Compare(u datetime.Interface) int + func (t *Time) Equal(u datetime.Interface) bool + func (t *Time) FromString(value string) (datetime.Interface, error) + func (t *Time) Time() goTime.Time + func (t *Time) ToString() string + type Value string + func StringToValue(value string) (Value, error) + func (d Value) Date() datetime.Interface + func (d Value) String() string v1.0.0-rc1 Feb 5, 2025 v1.0.0-beta1 Feb 5, 2025