Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: Make ztrftime pass more things to strftime



There's not a particularly obvious way to skip an individual test,
though it might be time we added one (that ought to be easy).  You just
print a warning to the control fd in that case, and do any comparison
with input internally rather than relying on comparing with the sections
after the status.

You can test arbitrary dates with

%%zmodload zsh/datetime
% strftime "%Y" 0
1970

but you need to fail gracefully if zsh/datetime isn't available, too.

pws



Messages sorted by: Reverse Date, Date, Thread, Author