datetime - Convert seconds since epoch to days since 0001-01-01 UTC in Python -
i have time in python that's represented seconds since unix epoch. matplotlib wants days since 0001-01-01 utc (http://matplotlib.org/api/dates_api.html).
how can convert seconds since unix epoch days since 0001-01-01 utc?
a little more thorough reading of documentation shows matplotlib.dates.epoch2num
Comments
Post a Comment