dlowe-net / local-time

Time manipulation library for Common Lisp
Other
102 stars 43 forks source link

`short-year` does not exist. #124

Closed dertuxmalwieder closed 4 months ago

dertuxmalwieder commented 5 months ago

construct-timestring defines a :short-year format qualifier, but I can't use it:

:SHORT-YEAR fell through ECASE expression. Wanted one of (:NSEC :USEC :MSEC :SEC :MIN :HOUR :HOUR12 :DAY :WEEKDAY :MONTH :YEAR :ISO-WEEK-YEAR ...).

That's unfortunate, because it could come in handy. :)

dlowe-net commented 5 months ago

It's defined, you just can't use it in a parenthesized format clause. (construct-timestring (now) :format '(:short-year)) works, (construct-timestring (now) :format '((:short-year 2 0))) does not.

This is a pretty easy fix, so I'll fix it soon.

dertuxmalwieder commented 5 months ago

Ah, simple as that. Thank you!