MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / DTimestamp

Struct DTimestamp

pkg/sql/sem/tree/datum.go:2599–2605  ·  view source on GitHub ↗

DTimestamp is the timestamp Datum.

Source from the content-addressed store, hash-verified

2597
2598// DTimestamp is the timestamp Datum.
2599type DTimestamp struct {
2600 // DTimestamp represents a timezoneless date and time value. It is stored in
2601 // the time.Time as if it had UTC location, regardless of what timezone it
2602 // actually represents (which is unknown within the database). See comment
2603 // above ParseTimestampWithoutTimezone for some examples.
2604 time.Time
2605}
2606
2607// MakeDTimestamp creates a DTimestamp with specified precision.
2608func MakeDTimestamp(t time.Time, precision time.Duration) (_ *DTimestamp, err error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected