Subject: Re: strftime %X control: how?
To: NetBSD User-Level Technical Discussion List <tech-userlevel@NetBSD.org>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
Date: 07/05/2007 20:04:12
>> I want standard ISO date format, but I otherwise want what I have
>> now. My question is, how can I get this?
> The current implementation supports only the "C" and "POSIX"
> locales for all but the LC_CTYPE locale.
Are there standards for what goes in $LC_TIME (or, what it points to,
if it's just a name pointing to data somewhere else)? If so, where can
I find them? If not, any thoughts on how to construct such a thing? I
can of course just hack something together to make atq print sane dates
for me, but if there are specs, I'd like to at least consider following
them, and if I can improve NetBSD at the same time, all the better.
> Personally I don't think it should be possible to personalize the
> date formats used in standard reports produced by command-line tools.
I disagree. It would be reasonable to provide a way to get some
standard format, but for something like atq which is primarily intended
for human consumption, letting humans configure it is Good.
> E.g. strftime("%F-%T%z");
Thank you! Thank you! Someone who knows the difference between "e.g."
/~\ The ASCII der Mouse
\ / Ribbon Campaign
X Against HTML email@example.com
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B