func (t Time) Compare(u Time) int
Compare compares the time instant t with u. If t is before u, it returns -1;
if t is after u, it returns +1; if they're the same, it returns 0.
If you want to change selection, open document below and click on "Move attachment"
time package - time - Go Packagese Share Format Run func (Time) Clock ¶ func (t Time) Clock() (hour, min, sec int) Clock returns the hour, minute, and second within the day specified by t. func (Time) Compare ¶ added in go1.20 <span>func (t Time) Compare(u Time) int Compare compares the time instant t with u. If t is before u, it returns -1; if t is after u, it returns +1; if they're the same, it returns 0. func (Time) Date ¶ func (t Time) Date() (year int, month Month, day int) Date returns the year, month, and day in which t occurs. Example ¶ Output: year = 2000 month = February day = 1 Summary
status | not read | | reprioritisations | |
---|
last reprioritisation on | | | suggested re-reading day | |
---|
started reading on | | | finished reading on | |
---|
Details