Before reports whether the current DateTime instance is before u.
(u DateTime)
| 64 | |
| 65 | // Before reports whether the current DateTime instance is before u. |
| 66 | func (d DateTime) Before(u DateTime) bool { |
| 67 | return d.Time().Before(u.Time()) |
| 68 | } |
| 69 | |
| 70 | // Compare compares the current DateTime instance with u. |
| 71 | // If the current instance is before u, it returns -1. |