sqltimestamp

package
v0.0.0-rc3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InfiniteTimestampError = xerrors.NewSentinel("infinity is unparseable by the common timestamp parser")

Functions

func Parse

func Parse(timestamp string) (time.Time, error)

Parse converts a text representation of an PostgreSQL-formatted date, timestamp, or timestamptz into time.Time. In contrast with pgtype parsers, this parser supports BC years.

TODO: remove this when https://st.yandex-team.ru/TM-5127 is done

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL