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
<time>2011-01-01T00:00:03Z</time>
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
for (i from 1 to 1000)
print <header>
print "$date";
$date = $date + "01:02:33";
endfor
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|