Unix returns the current DateTime as a Unix time, aka. the number of seconds elapsed since January 1, 1970 UTC.
()
| 85 | // Unix returns the current DateTime as a Unix time, aka. |
| 86 | // the number of seconds elapsed since January 1, 1970 UTC. |
| 87 | func (d DateTime) Unix() int64 { |
| 88 | return d.Time().Unix() |
| 89 | } |
| 90 | |
| 91 | // IsZero checks whether the current DateTime instance has zero time value. |
| 92 | func (d DateTime) IsZero() bool { |