aboutsummaryrefslogtreecommitdiff
path: root/lib/time/clock.go
AgeCommit message (Collapse)Author
2026-01-15all: convert license and copyright to use SPDX identifiersShulhan
With help of spdxconv tool [1], we able to bulk update all files license and copyright format to comply with SPDX formats. [1] https://kilabit.info/project/spdxconv/
2023-02-25lib/time: fix After and Before logicShulhan
Due to copy, paste and lack of testing, some condition should be check using < instead of >. While at it, add other examples for full test coverage.
2023-02-22lib/time: add new type ClockShulhan
Clock represent 24 hours time with hour, minute, and second. An hour value is from 0 to 23, a minute value is from 0 to 59, and a second value is from 0 to 59.