Open vindarel opened 1 year ago
Added the current periods doc online, with syntax highlighting: https://lisp-maintainers.github.io/periods/
It should be extended now (and probably by using a real documentation builder).
While working on the doc, ciel -s simplehttpserver
was helpful ;)
bo-tato:
periods
might bring some more high-level functions and macros, complementinglocal-time
.goal: bring the good in a common package, for instance import & reexport symbols into a new
ciel/time
package.do-times
not exported
example:
also
do-time-period
(un-exported),do-over-time
(exported but doesn't exist?),map-over-time
(doesn't exist ?)subtract-time, add-time
equivalent to
local-time:timestamp-
?not exported:
add-[hours, days, years, months, minutes, seconds, microseconds, milliseconds]
duration
time-range
fixed-time
parse-time-range, parse-time-period
Parse a human-readable string and give a time-range, or parse a date with a time-range of 1 day.
Possible strings:
Convenience functions
current-year
leapp
local-time has it in a flet, my PR to bring it to an accessible function got rejected: https://github.com/dlowe-net/local-time/pull/106 (add weaks-in-year, leap-year-p, tomorrow, yesterday)
falls-on-weekend-p
sleep-until
it doesn't have tests? (I know it's CL, but still)