MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / NewDDateFromTime

Function NewDDateFromTime

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

NewDDateFromTime constructs a *DDate from a time.Time.

(t time.Time)

Source from the content-addressed store, hash-verified

1746
1747// NewDDateFromTime constructs a *DDate from a time.Time.
1748func NewDDateFromTime(t time.Time) (*DDate, error) {
1749 d, err := pgdate.MakeDateFromTime(t)
1750 return NewDDate(d), err
1751}
1752
1753// ParseTimeContext provides the information necessary for
1754// parsing dates, times, and timestamps. A nil value is generally

Callers 1

PerformCastFunction · 0.85

Calls 2

MakeDateFromTimeFunction · 0.92
NewDDateFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…