[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Military time
From: |
C C Magnus Gustavsson |
Subject: |
Re: Military time |
Date: |
Mon, 18 Aug 2003 17:30:41 +0200 (CEST) |
On 17 Aug 2003, Paul Eggert wrote:
> Can't you implement it fairly easily with a C function or shell
> script?
Sure I can. But considering the extensive possibilities to customize and
format the output from the date command, it seems to me it belongs in the
command itself. The designer(s) could easily have confined themselves to a
few standard output formats and left formatting and transformations like
these (e g weekday or month numbers to names) to local scripts. Besides,
if it's in the command it'll be available on all systems with GNU
coreutils without the need to download a script with the time zones.
Either way, a script wouldn't let you specify the timezone by a letter in
the TZ variable.
> # The current time zone has a value like +1400 or +0530
> # that cannot be represented in military time.
+0530 is "E*" by the way.
(E g http://aa.usno.navy.mil/faq/docs/world_tzones.html)
Magnus