tsk1979 has asked for the wisdom of the Perl Monks concerning the following question:
I have already looked at Date:Manip, and its very powerful, as well as slow.
MY requirement is a bit simple.
I am writing a gpx file, and every trkpnt entry requires a date time in the following format
I will be writing track points inside a loop, and in every entry I will be incrementing the time by 1 hour 2 minutes and 3 seconds. I am planning to write over a 1000 trackpoints. Since I do not require all the complications of Date:Manip, is there something simpler I can use A typical algo I will do<time>2011-01-01T00:00:03Z</time>
for (i from 1 to 1000) print <header> print "$date"; $date = $date + "01:02:33"; endfor
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Simple date and time manipulation
by Corion (Patriarch) on Jan 19, 2011 at 09:31 UTC | |
by CountZero (Bishop) on Jan 19, 2011 at 10:36 UTC | |
by tsk1979 (Scribe) on Jan 19, 2011 at 10:21 UTC | |
by andreas1234567 (Vicar) on Jan 19, 2011 at 10:53 UTC | |
by ruzam (Curate) on Jan 19, 2011 at 17:35 UTC | |
Re: Simple date and time manipulation
by andreas1234567 (Vicar) on Jan 19, 2011 at 09:57 UTC | |
Re: Simple date and time manipulation
by Utilitarian (Vicar) on Jan 19, 2011 at 09:57 UTC | |
by thargas (Deacon) on Jan 19, 2011 at 12:52 UTC | |
Re: Simple date and time manipulation
by sundialsvc4 (Abbot) on Jan 19, 2011 at 13:17 UTC | |
by Corion (Patriarch) on Jan 19, 2011 at 13:43 UTC | |
by BrowserUk (Patriarch) on Jan 19, 2011 at 14:07 UTC | |
by BrowserUk (Patriarch) on Jan 19, 2011 at 13:31 UTC |
Back to
Seekers of Perl Wisdom