Skip to content

fix missing arg in timestamp asvs #18503

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 26, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 20 additions & 20 deletions asv_bench/benchmarks/timestamp.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,55 +13,55 @@ class TimestampProperties(object):
def setup(self, tz):
self.ts = Timestamp('2017-08-25 08:16:14', tzinfo=tz)

def time_tz(self):
def time_tz(self, tz):
self.ts.tz

def time_offset(self):
def time_offset(self, tz):
self.ts.offset

def time_dayofweek(self):
def time_dayofweek(self, tz):
self.ts.dayofweek

def time_weekday_name(self):
def time_weekday_name(self, tz):
self.ts.weekday_name

def time_dayofyear(self):
def time_dayofyear(self, tz):
self.ts.dayofyear

def time_week(self):
def time_week(self, tz):
self.ts.week

def time_quarter(self):
def time_quarter(self, tz):
self.ts.quarter

def time_days_in_month(self):
def time_days_in_month(self, tz):
self.ts.days_in_month

def time_freqstr(self):
def time_freqstr(self, tz):
self.ts.freqstr

def time_is_month_start(self):
def time_is_month_start(self, tz):
self.ts.is_month_start

def time_is_month_end(self):
def time_is_month_end(self, tz):
self.ts.is_month_end

def time_is_quarter_start(self):
def time_is_quarter_start(self, tz):
self.ts.is_quarter_start

def time_is_quarter_end(self):
def time_is_quarter_end(self, tz):
self.ts.is_quarter_end

def time_is_year_start(self):
def time_is_year_start(self, tz):
self.ts.is_quarter_end

def time_is_year_end(self):
def time_is_year_end(self, tz):
self.ts.is_quarter_end

def time_is_leap_year(self):
def time_is_leap_year(self, tz):
self.ts.is_quarter_end

def time_microsecond(self):
def time_microsecond(self, tz):
self.ts.microsecond


Expand All @@ -74,13 +74,13 @@ class TimestampOps(object):
def setup(self, tz):
self.ts = Timestamp('2017-08-25 08:16:14', tz=tz)

def time_replace_tz(self):
def time_replace_tz(self, tz):
self.ts.replace(tzinfo=pytz.timezone('US/Eastern'))

def time_replace_None(self):
def time_replace_None(self, tz):
self.ts.replace(tzinfo=None)

def time_to_pydatetime(self):
def time_to_pydatetime(self, tz):
self.ts.to_pydatetime()


Expand Down