We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99d19f7 commit ae9d651Copy full SHA for ae9d651
lib/matplotlib/dates.py
@@ -1744,6 +1744,8 @@ def _get_interval(self):
1744
return self._interval
1745
1746
1747
+@_api.deprecated("3.5",
1748
+ alternative="mdates.date2num(datetime.utcfromtimestamp(e))")
1749
def epoch2num(e):
1750
"""
1751
Convert UNIX time to days since Matplotlib epoch.
@@ -1764,7 +1766,7 @@ def epoch2num(e):
1764
1766
1765
1767
return (dt + np.asarray(e)) / SEC_PER_DAY
1768
-
1769
+@_api.deprecated("3.5", alternative="mdates.num2date(e).timestamp()")
1770
def num2epoch(d):
1771
1772
Convert days since Matplotlib epoch to UNIX time.
0 commit comments