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

Method IsFinite

postgres/parser/pgdate/pgdate.go:198–200  ·  view source on GitHub ↗

IsFinite returns whether d is finite.

()

Source from the content-addressed store, hash-verified

196
197// IsFinite returns whether d is finite.
198func (d Date) IsFinite() bool {
199 return d.days != math.MinInt32 && d.days != math.MaxInt32
200}
201
202// PGEpochDays returns the number of days since 2001-01-01. This value can
203// also be MinInt32 or MaxInt32, indicating negative or positive infinity.

Callers 2

AddDaysMethod · 0.95
SubDaysMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected