strptime() fails to recognize negative hours
Sergei Naumov via gnuplot-info <[email protected]>
| Newsgroups | gmane.comp.graphics.gnuplot.user |
|---|---|
| Message-ID | <[email protected]> |
Hi! posting a question on https://stackoverflow.com/questions/60985800/reading-formatted-column-in-gnuplot it came out that strptime() does not recognize negative sign in cases like the following: gnuplot> myTimeFmt = "%tH:%tM:%tS" gnuplot> print strptime(myTimeFmt,"-00:24:25.3") 1465.3 gnuplot> print strptime(myTimeFmt,"00:-24:25.3") -1465.3 gnuplot> Is there a bug or it should work like this? If it does, how one would take this minus into account? Thanks, Sergei _______________________________________________ gnuplot-info mailing list [email protected] Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info