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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.