military time with Date::Calc

military time with Date::Calc

am 09.06.2005 09:09:26 von Schmidty

Hi...Does anyone know if you can convert standard 12 hour time (am/pm)
to military time (24 hours) with the Date::Calc module? I wrote a script
that would do it but really like to usability of Date::Calc. Could
this be rewritten into the module later on?

Schmidty

Re: military time with Date::Calc

am 10.06.2005 00:03:58 von Peter Billam

In article , Schmidty wrote:
> Hi...Does anyone know if you can convert standard 12 hour time (am/pm)
> to military time (24 hours) with the Date::Calc module? I wrote a script
> that would do it but really like to usability of Date::Calc. Could
> this be rewritten into the module later on?

Is it just the plain old civilian 24-hour clock that's intended ?
Nothing military about that, it's used everywhere in Europe, for
example.

I've heard that military time differs by forbidding the midnight
minute 00:00 and 24:00 because this has been known to cause confusion
about which day it is. So it goes straight from 23:59 to 00:01.
I'm not sure how that's done, in detail ...

Regards, Peter

--

Peter Billam, DPIWE/CIT/Servers, hbt/lnd/l8, 6233 3061

Re: military time with Date::Calc

am 10.06.2005 03:23:46 von Schmidty

Peter Billam wrote:
> In article , Schmidty wrote:
>
>>Hi...Does anyone know if you can convert standard 12 hour time (am/pm)
>>to military time (24 hours) with the Date::Calc module? I wrote a script
>>that would do it but really like to usability of Date::Calc. Could
>>this be rewritten into the module later on?
>
>
> Is it just the plain old civilian 24-hour clock that's intended ?
> Nothing military about that, it's used everywhere in Europe, for
> example.
>
> I've heard that military time differs by forbidding the midnight
> minute 00:00 and 24:00 because this has been known to cause confusion
> about which day it is. So it goes straight from 23:59 to 00:01.
> I'm not sure how that's done, in detail ...
>
> Regards, Peter
>
Yeah...it would be the standard 24 hour format (00:00:00 to 23:59:59). I
wrote some Perl code that easily differentiates between the two but I
was hoping the Date::Calc module might have a way of converting back and
forth or maybe there might be another module out there. I find it hard
to believe that they wouldn't include this...thanks.

Schmidty

Re: military time with Date::Calc

am 10.06.2005 12:07:04 von someone

Peter Billam wrote:
> In article , Schmidty wrote:
>
>>Hi...Does anyone know if you can convert standard 12 hour time (am/pm)
>>to military time (24 hours) with the Date::Calc module? I wrote a script
>>that would do it but really like to usability of Date::Calc. Could
>>this be rewritten into the module later on?
>
>
> Is it just the plain old civilian 24-hour clock that's intended ?
> Nothing military about that, it's used everywhere in Europe, for
> example.
>
> I've heard that military time differs by forbidding the midnight
> minute 00:00 and 24:00 because this has been known to cause confusion
> about which day it is. So it goes straight from 23:59 to 00:01.
> I'm not sure how that's done, in detail ...

Also military time is designated as Zulu Time and is always UTC, e.g. 23:16 Z
which is the same as 23:16 UTC (or 23:16 GMT.)


John
--
use Perl;
program
fulfillment