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 fabc316 commit 8badfd5Copy full SHA for 8badfd5
asv_bench/benchmarks/timestamp.py
@@ -1,10 +1,10 @@
1
+import datetime
2
+
3
from pandas import Timestamp
4
import pytz
-import datetime
5
6
7
class TimestampConstruction(object):
- # TODO: classmethod constructors: fromordinal, fromtimestamp...
8
9
def time_parse_iso8601_no_tz(self):
10
Timestamp('2017-08-25 08:16:14')
@@ -21,6 +21,12 @@ def time_parse_today(self):
21
def time_parse_now(self):
22
Timestamp('now')
23
24
+ def time_fromordinal(self):
25
+ Timestamp.fromordinal(730120)
26
27
+ def time_fromtimestamp(self):
28
+ Timestamp.fromtimestamp(1515448538)
29
30
31
class TimestampProperties(object):
32
goal_time = 0.2
0 commit comments