#155 How do I know which date is used as the zero point of time coordinates ?

None
closed
nobody
None
5
2013-04-28
2013-04-09
Hiroki Motoyoshi
No

In recent CVS, the zero point of time coordinates was changed from "1-Jan-2000" to "1-Jan-1970". I often used raw seconds from "1-Jan-2000" as the time axis value in binary data created my own script interacts with gnuplot. By this change, my script may be draw different time axis range according to the version of gnuplot.

How do I know which epoch date is used in running version of gnuplot on the fly.

If there is no way to do it, I wish there were the solution like,
gnuplot> print EPOCH
or
gnuplot> print second("2000-01-01")
or
...?

Discussion

  • Ethan Merritt
    Ethan Merritt
    2013-04-09

    gnuplot> print strftime("%d-%m-%Y",0)
    01-01-1970

     
  • It's the thing i'm looking for.

    Thank you!

     
  • Ethan Merritt
    Ethan Merritt
    2013-04-28

    • status: open --> closed
    • Group: -->