MCPcopy Create free account
hub / github.com/dolthub/doltgresql / UnixEpochDaysWithOrig

Method UnixEpochDaysWithOrig

postgres/parser/pgdate/pgdate.go:223–228  ·  view source on GitHub ↗

UnixEpochDaysWithOrig returns the original on-disk representation if present, otherwise UnixEpochDays().

()

Source from the content-addressed store, hash-verified

221// UnixEpochDaysWithOrig returns the original on-disk representation if
222// present, otherwise UnixEpochDays().
223func (d Date) UnixEpochDaysWithOrig() int64 {
224 if d.hasOrig {
225 return d.orig
226 }
227 return d.UnixEpochDays()
228}
229
230// Compare compares two dates.
231func (d Date) Compare(other Date) int {

Callers

nothing calls this directly

Calls 1

UnixEpochDaysMethod · 0.95

Tested by

no test coverage detected