Versions in this module Expand all Collapse all v0 v0.23.2 Feb 12, 2024 Changes in this version + var ErrIntOverflowPgdate = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthPgdate = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroupPgdate = fmt.Errorf("proto: unexpected end of group") + var HighDate = Date + var LowDate = Date + var NegInfDate = Date + var Order_name = map[int32]string + var Order_value = map[string]int32 + var PosInfDate = Date + var Style_name = map[int32]string + var Style_value = map[string]int32 + var TimeEpoch = timeutil.Unix(0, 0) + var TimeInfinity = timeutil.Unix(9224318016000 - 1, 999999000) + var TimeNegativeInfinity = timeutil.Unix(-210866803200, 0) + func AllowedDateStyles() []string + func DateToJulianDay(year int, month int, day int) int + func ParseTime(now time.Time, dateStyle DateStyle, s string, h *ParseHelper) (_ time.Time, dependsOnContext bool, _ error) + func ParseTimeWithoutTimezone(now time.Time, dateStyle DateStyle, s string) (_ time.Time, dependsOnContext bool, _ error) + func ParseTimestamp(now time.Time, dateStyle DateStyle, s string) (_ time.Time, dependsOnContext bool, _ error) + func ParseTimestampWithoutTimezone(now time.Time, dateStyle DateStyle, s string) (_ time.Time, dependsOnContext bool, _ error) + type Date struct + func MakeCompatibleDateFromDisk(unixDays int64) Date + func MakeDateFromPGEpoch(days int32) (Date, error) + func MakeDateFromPGEpochClampFinite(days int32) Date + func MakeDateFromTime(t time.Time) (Date, error) + func MakeDateFromUnixEpoch(days int64) (Date, error) + func ParseDate(now time.Time, dateStyle DateStyle, s string, h *ParseHelper) (_ Date, dependsOnContext bool, _ error) + func (d Date) AddDays(days int64) (Date, error) + func (d Date) Compare(other Date) int + func (d Date) Format(buf *bytes.Buffer) + func (d Date) IsFinite() bool + func (d Date) PGEpochDays() int32 + func (d Date) String() string + func (d Date) SubDays(days int64) (Date, error) + func (d Date) ToTime() (time.Time, error) + func (d Date) UnixEpochDays() int64 + func (d Date) UnixEpochDaysWithOrig() int64 + type DateStyle struct + Order Order + Style Style + func DefaultDateStyle() DateStyle + func ParseDateStyle(s string, existingDateStyle DateStyle) (DateStyle, error) + func (*DateStyle) Descriptor() ([]byte, []int) + func (*DateStyle) ProtoMessage() + func (ds DateStyle) SQLString() string + func (m *DateStyle) Marshal() (dAtA []byte, err error) + func (m *DateStyle) MarshalTo(dAtA []byte) (int, error) + func (m *DateStyle) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *DateStyle) Reset() + func (m *DateStyle) Size() (n int) + func (m *DateStyle) String() string + func (m *DateStyle) Unmarshal(dAtA []byte) error + func (m *DateStyle) XXX_DiscardUnknown() + func (m *DateStyle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *DateStyle) XXX_Merge(src proto.Message) + func (m *DateStyle) XXX_Size() int + func (m *DateStyle) XXX_Unmarshal(b []byte) error + type Order int32 + const Order_DMY + const Order_MDY + const Order_YMD + func (Order) EnumDescriptor() ([]byte, []int) + func (x Order) String() string + type ParseHelper struct + type Style int32 + const Style_GERMAN + const Style_ISO + const Style_POSTGRES + const Style_SQL + func (Style) EnumDescriptor() ([]byte, []int) + func (s Style) SQLString() string + func (x Style) String() string