Timestamp¶
Timestamp functionality is documented in pandas.Timestamp.
pd.Timestamp¶
-
pandas. Timestamp (ts_input=<object object>, freq=None, tz=None, unit=None, year=None, month=None, day=None, hour=None, minute=None, second=None, microsecond=None, nanosecond=None, tzinfo=None, *, fold=None)Supported Arguments
ts_input: string, integer, timestamp, datetimedateunit: constant stringyear: integermonth: integerday: integerhour: integerminute: integersecond: integermicrosecond: integernanosecond: integer
Example Usage
>>> @bodo.jit ... def f(): ... return I.copy(name="new_name") ... ts1 = pd.Timestamp('2021-12-09 09:57:44.114123') ... ts2 = pd.Timestamp(year=2021, month=12, day=9, hour = 9, minute=57, second=44, microsecond=114123) ... ts3 = pd.Timestamp(100, unit="days") ... ts4 = pd.Timestamp(datetime.date(2021, 12, 9), hour = 9, minute=57, second=44, microsecond=114123) ... return (ts1, ts2, ts3, ts4) >>> f() (Timestamp('2021-12-09 09:57:44.114123'), Timestamp('2021-12-09 09:57:44.114123'), Timestamp('1970-04-11 00:00:00'), Timestamp('2021-12-09 09:57:44.114123'))
pd.Timestamp.day¶
-
pandas.Timestamp. day
Example Usage
pd.Timestamp.hour¶
-
pandas.Timestamp. hour
Example Usage
pd.Timestamp.microsecond¶
-
pandas.Timestamp. microsecond
Example Usage
pd.Timestamp.month¶
-
pandas.Timestamp. month
Example Usage
pd.Timestamp.nanosecond¶
-
pandas.Timestamp. nanosecond
Example Usage
pd.Timestamp.second¶
-
pandas.Timestamp. second
Example Usage
pd.Timestamp.year¶
-
pandas.Timestamp. year
Example Usage
pd.Timestamp.dayofyear¶
-
pandas.Timestamp. dayofyear
Example Usage
pd.Timestamp.day_of_year¶
-
pandas.Timestamp. day_of_year
Example Usage
pd.Timestamp.dayofweek¶
-
pandas.Timestamp. dayofweek
Example Usage
pd.Timestamp.day_of_week¶
-
pandas.Timestamp. day_of_week
Example Usage
pd.Timestamp.days_in_month¶
-
pandas.Timestamp. days_in_month
Example Usage
pd.Timestamp.daysinmonth¶
-
pandas.Timestamp. daysinmonth
Example Usage
pd.Timestamp.is_leap_year¶
-
pandas.Timestamp. is_leap_year
Example Usage
pd.Timestamp.is_month_start¶
-
pandas.Timestamp. is_month_start
Example Usage
pd.Timestamp.is_month_end¶
-
pandas.Timestamp. is_month_end
Example Usage
pd.Timestamp.is_quarter_start¶
-
pandas.Timestamp. is_quarter_start
Example Usage
pd.Timestamp.is_quarter_end¶
-
pandas.Timestamp. is_quarter_end
Example Usage
pd.Timestamp.is_year_start¶
-
pandas.Timestamp. is_year_start
Example Usage
pd.Timestamp.is_year_end¶
-
pandas.Timestamp. is_year_end
Example Usage
pd.Timestamp.quarter¶
-
pandas.Timestamp. quarter
Example Usage
pd.Timestamp.week¶
-
pandas.Timestamp. week
Example Usage
pd.Timestamp.weekofyear¶
-
pandas.Timestamp. weekofyear
Example Usage
pd.Timestamp.value¶
-
pandas.Timestamp. value
Example Usage
pd.Timestamp.ceil¶
-
pandas.Timestamp. ceil (freq, ambiguous='raise', nonexistent='raise')
Supported Argumentsfreq: string
Example Usage
>>> @bodo.jit ... def f(): ... ts1 = pd.Timestamp(year=2021, month=12, day=9, hour = 9, minute=57, second=44, microsecond=114123) ... ts2 = pd.Timestamp(year=2021, month=12, day=9, hour = 9, minute=57, second=44, microsecond=114123).ceil("D") ... return (ts1, ts2) >>> f() (Timestamp('2021-12-09 09:57:44.114123'), Timestamp('2021-12-10 00:00:00'))
pd.Timestamp.date¶
-
pandas.Timestamp. date ()
Example Usage>>> @bodo.jit ... def f(): ... ts1 = pd.Timestamp(year=2021, month=12, day=9, hour = 9, minute=57, second=44, microsecond=114123) ... ts2 = pd.Timestamp(year=2021, month=12, day=9, hour = 9, minute=57, second=44, microsecond=114123).date() ... return (ts1, ts2) >>> f() (Timestamp('2021-12-09 09:57:44.114123'), datetime.date(2021, 12, 9))
pd.Timestamp.day_name¶
-
pandas.Timestamp. day_name (args, *kwargs)Supported Arguments: None
Example Usage
pd.Timestamp.floor¶
-
pandas.Timestamp. floor (freq, ambiguous='raise', nonexistent='raise')
Supported Argumentsfreq: string
Example Usage
>>> @bodo.jit ... def f(): ... ts1 = pd.Timestamp(year=2021, month=12, day=9, hour = 9, minute=57, second=44, microsecond=114123) ... ts2 = pd.Timestamp(year=2021, month=12, day=9, hour = 9, minute=57, second=44, microsecond=114123).ceil("D") ... return (ts1, ts2) >>> f() (Timestamp('2021-12-09 09:57:44.114123'), Timestamp('2021-12-09 00:00:00'))
pd.Timestamp.isocalendar¶
-
pandas.Timestamp. isocalendar ()
Example Usage
pd.Timestamp.isoformat¶
-
pandas.Timestamp. isoformat ()
Example Usage
pd.Timestamp.month_name¶
-
pandas.Timestamp. month_name (locale=None)
Supported Arguments: NoneExample Usage
pd.Timestamp.normalize¶
-
pandas.Timestamp. normalize ()
Example Usage
pd.Timestamp.round¶
-
pandas.Timestamp. round (freq, ambiguous='raise', nonexistent='raise')
Supported Argumentsfreq: string
Example Usage
pd.Timestamp.strftime¶
-
pandas.Timestamp. strftime (format)
Supported Argumentsformat: string
Example Usage
pd.Timestamp.toordinal¶
-
pandas.Timestamp. toordinal ()
Example Usage
pd.Timestamp.weekday¶
-
pandas.Timestamp. weekday ()
Example Usage
pd.Timestamp.now¶
-
pandas.Timestamp. now (tz=None)
Supported Arguments:tz: constant string, integer, or None
Example Usage