Versions in this module Expand all Collapse all v1 v1.5.0 Nov 30, 2021 v1.4.6 Oct 28, 2021 Changes in this version + const Length10 + const Length13 + const Length16 + const Length19 + const TEXT + const TIMESTAMP + var ErrUnKnownFormatType = errors.New("unknown format type error") + var ErrUnKnownTimestampLength = errors.New("unknown timestamp length error") + var UsedFormatType = TIMESTAMP + var UsedTextTimeFormart = "2006-01-02 15:04:05" + var UsedTimestampLength = Length13 + type FormatType string + type Time time.Time + func Now() Time + func T(t time.Time) Time + func (t *Time) Scan(value interface{}) error + func (t *Time) T() time.Time + func (t *Time) UnmarshalBSONValue(bt bsontype.Type, data []byte) error + func (t *Time) UnmarshalJSON(b []byte) error + func (t Time) MarshalBSONValue() (bsontype.Type, []byte, error) + func (t Time) MarshalJSON() ([]byte, error) + func (t Time) Timestamp() int64 + func (t Time) Value() (driver.Value, error) + type TimestampLength int