IsFinite returns whether d is finite.
()
| 196 | |
| 197 | // IsFinite returns whether d is finite. |
| 198 | func (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. |