Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Print time in Date"T"time+Gmtoffsetby frozenwithjoy (Priest) |
on Apr 01, 2014 at 06:38 UTC ( [id://1080488]=note: print w/replies, xml ) | Need Help?? |
Is the colon required in the offset for your purposes? If not:
If you want the colon and no zero-padding, you could grab the offset by itself (strftime "%z", localtime();), throw a colon in it and drop the leftmost digit if it is 0. Or there might be an easier way.
In Section
Seekers of Perl Wisdom
|
|