On 05/07/2010 12:54, Alex Francis wrote:
> Another option, depending on your environment, and still shoving the :
> in at the end:
>
> perl -le 'use DateTime; print join q{:}, split /(?=\d\d$)/,
> DateTime->now->format_cldr("YYYY-MM-dd hh:mm:ss ZZZ"), 2'
>
> I can't see a format pattern for the timezone offset that puts the : in.
>
I was avoiding DateTime because it's pretty heavy, although it is
portable. In a rush and just wanting to go to bed I didn't fancy
trawling through it's docs again...
In hindsight, may well have been quicker.
Lyle
_______________________________________________
BristolBathPM mailing list
[email protected]
http://mailman.bristolbath.org/mailman/listinfo/bristolbathpm