Date offsets#

DateOffset#

DateOffset 

日期范围使用的标准日期增量类型。

属性#

DateOffset.freqstr 

返回表示频率的字符串。

DateOffset.kwds 

返回偏移量的额外参数字典。

DateOffset.name 

返回表示基本频率的字符串。

DateOffset.nanos 

DateOffset.normalize 

DateOffset.rule_code 

DateOffset.n 

DateOffset.is_month_start (ts)

如果时间戳发生在月份开始时,则返回布尔值。

DateOffset.is_month_end (ts)

如果时间戳发生在月份结束时,则返回布尔值。

Methods#

DateOffset.copy ()

返回频率的副本。

DateOffset.is_anchored ()

(已弃用) 返回频率是否为单位频率 (n=1) 的布尔值.

DateOffset.is_on_offset (dt)

如果时间戳与此频率相交,则返回布尔值。

DateOffset.is_month_start (ts)

如果时间戳发生在月份开始时,则返回布尔值。

DateOffset.is_month_end (ts)

如果时间戳发生在月份结束时,则返回布尔值。

DateOffset.is_quarter_start (ts)

如果时间戳发生在季度开始时,则返回布尔值。

DateOffset.is_quarter_end (ts)

如果时间戳发生在季度结束时,则返回布尔值。

DateOffset.is_year_start (ts)

如果时间戳发生在年份开始时,则返回布尔值。

DateOffset.is_year_end (ts)

如果时间戳发生在年份结束时,则返回布尔值。

BusinessDay#

BusinessDay 

表示可能 n 个工作日的 DateOffset 子类。

别名:

BDay 

BusinessDay 的别名

属性#

BusinessDay.freqstr 

返回表示频率的字符串。

BusinessDay.kwds 

返回偏移量的额外参数字典。

BusinessDay.name 

返回表示基本频率的字符串。

BusinessDay.nanos 

BusinessDay.normalize 

BusinessDay.rule_code 

BusinessDay.n 

BusinessDay.weekmask 

BusinessDay.holidays 

BusinessDay.calendar 

Methods#

BusinessDay.copy ()

返回频率的副本。

BusinessDay.is_anchored ()

(已弃用) 返回频率是否为单位频率 (n=1) 的布尔值.

BusinessDay.is_on_offset (dt)

如果时间戳与此频率相交,则返回布尔值。

BusinessDay.is_month_start (ts)

如果时间戳发生在月份开始时,则返回布尔值。

BusinessDay.is_month_end (ts)

如果时间戳发生在月份结束时,则返回布尔值。

BusinessDay.is_quarter_start (ts)

如果时间戳发生在季度开始时,则返回布尔值。

BusinessDay.is_quarter_end (ts)

如果时间戳发生在季度结束时,则返回布尔值。

BusinessDay.is_year_start (ts)

如果时间戳发生在年份开始时,则返回布尔值。

BusinessDay.is_year_end (ts)

如果时间戳发生在年份结束时,则返回布尔值。

BusinessHour#

BusinessHour 

DateOffset 子类,表示可能为 n 个工作小时。

属性#

Methods#

BusinessHour.copy ()

返回频率的副本。

BusinessHour.is_anchored ()

(已弃用) 返回频率是否为单位频率 (n=1) 的布尔值.

BusinessHour.is_on_offset (dt)

如果时间戳与此频率相交,则返回布尔值。

BusinessHour.is_month_start (ts)

如果时间戳发生在月份开始时,则返回布尔值。

BusinessHour.is_month_end (ts)

如果时间戳发生在月份结束时,则返回布尔值。

BusinessHour.is_quarter_start (ts)

如果时间戳发生在季度开始时,则返回布尔值。

BusinessHour.is_quarter_end (ts)

如果时间戳发生在季度结束时,则返回布尔值。

BusinessHour.is_year_start (ts)

如果时间戳发生在年份开始时,则返回布尔值。

BusinessHour.is_year_end (ts)

如果时间戳发生在年份结束时,则返回布尔值。

CustomBusinessDay#

CustomBusinessDay 

DateOffset 子类,表示可能 n 个自定义工作日。

别名:

CDay 

CustomBusinessDay 的别名

属性#

Methods#

CustomBusinessDay.copy ()

返回频率的副本。

CustomBusinessDay.is_anchored ()

(已弃用) 返回频率是否为单位频率 (n=1) 的布尔值.

CustomBusinessDay.is_on_offset (dt)

如果时间戳与此频率相交,则返回布尔值。

CustomBusinessDay.is_month_start (ts)

如果时间戳发生在月份开始时,则返回布尔值。

CustomBusinessDay.is_month_end (ts)

如果时间戳发生在月份结束时,则返回布尔值。

CustomBusinessDay.is_quarter_start (ts)

如果时间戳发生在季度开始时,则返回布尔值。

CustomBusinessDay.is_quarter_end (ts)

如果时间戳发生在季度结束时,则返回布尔值。

CustomBusinessDay.is_year_start (ts)

如果时间戳发生在年份开始时,则返回布尔值。

CustomBusinessDay.is_year_end (ts)

如果时间戳发生在年份结束时,则返回布尔值。

CustomBusinessHour#

CustomBusinessHour 

DateOffset 子类,表示可能 n 个自定义工作日。

属性#

Methods#

CustomBusinessHour.copy ()

返回频率的副本。

CustomBusinessHour.is_anchored ()

(已弃用) 返回频率是否为单位频率 (n=1) 的布尔值.

CustomBusinessHour.is_on_offset (dt)

如果时间戳与此频率相交,则返回布尔值。

CustomBusinessHour.is_month_start (ts)

如果时间戳发生在月份开始时,则返回布尔值。

CustomBusinessHour.is_month_end (ts)

如果时间戳发生在月份结束时,则返回布尔值。

CustomBusinessHour.is_quarter_start (ts)

如果时间戳发生在季度开始时,则返回布尔值。

CustomBusinessHour.is_quarter_end (ts)

如果时间戳发生在季度结束时,则返回布尔值。

CustomBusinessHour.is_year_start (ts)

如果时间戳发生在年份开始时,则返回布尔值。

CustomBusinessHour.is_year_end (ts)

如果时间戳发生在年份结束时,则返回布尔值。

MonthEnd#

MonthEnd 

一个月的结束的日期偏移量。

属性#

MonthEnd.freqstr 

返回表示频率的字符串。

MonthEnd.kwds 

返回偏移量的额外参数字典。

MonthEnd.name 

返回表示基本频率的字符串。

MonthEnd.nanos 

MonthEnd.normalize 

MonthEnd.rule_code

MonthEnd.n

Methods#

MonthEnd.copy ()

返回频率的副本。

MonthEnd.is_anchored ()

(已弃用) 返回频率是否为单位频率 (n=1) 的布尔值.

MonthEnd.is_on_offset (dt)

如果时间戳与此频率相交,则返回布尔值。

MonthEnd.is_month_start (ts)

如果时间戳发生在月份开始时,则返回布尔值。

MonthEnd.is_month_end (ts)

如果时间戳发生在月份结束时,则返回布尔值。

MonthEnd.is_quarter_start (ts)

如果时间戳发生在季度开始时,则返回布尔值。

MonthEnd.is_quarter_end (ts)

如果时间戳发生在季度结束时,则返回布尔值。

MonthEnd.is_year_start (ts)

如果时间戳发生在年份开始时,则返回布尔值。

MonthEnd.is_year_end (ts)

如果时间戳发生在年份结束时,则返回布尔值。

MonthBegin#

MonthBegin

月初日期偏移量。

属性#

MonthBegin.freqstr

返回表示频率的字符串。

MonthBegin.kwds

返回偏移量的额外参数字典。

MonthBegin.name

返回表示基本频率的字符串。

MonthBegin.nanos

MonthBegin.normalize

MonthBegin.rule_code

MonthBegin.n

Methods#

MonthBegin.copy ()

返回频率的副本。

MonthBegin.is_anchored ()

(已弃用) 返回频率是否为单位频率 (n=1) 的布尔值.

MonthBegin.is_on_offset (dt)

如果时间戳与此频率相交,则返回布尔值。

MonthBegin.is_month_start (ts)

如果时间戳发生在月份开始时,则返回布尔值。

MonthBegin.is_month_end (ts)

如果时间戳发生在月份结束时,则返回布尔值。

MonthBegin.is_quarter_start (ts)

如果时间戳发生在季度开始时,则返回布尔值。

MonthBegin.is_quarter_end (ts)

如果时间戳发生在季度结束时,则返回布尔值。

MonthBegin.is_year_start (ts)

如果时间戳发生在年份开始时,则返回布尔值。

MonthBegin.is_year_end (ts)

如果时间戳发生在年份结束时,则返回布尔值。

BusinessMonthEnd#

BusinessMonthEnd

DateOffset increments between the last business day of the month.

别名:

属性#

BusinessMonthEnd.freqstr

返回表示频率的字符串。

BusinessMonthEnd.kwds

返回偏移量的额外参数字典。

BusinessMonthEnd.name

返回表示基本频率的字符串。

BusinessMonthEnd.nanos

BusinessMonthEnd.normalize

BusinessMonthEnd.rule_code

BusinessMonthEnd.n

Methods#

BusinessMonthEnd.copy ()

返回频率的副本。

BusinessMonthEnd.is_anchored ()

(已弃用) 返回频率是否为单位频率 (n=1) 的布尔值.

BusinessMonthEnd.is_on_offset (dt)

如果时间戳与此频率相交,则返回布尔值。

BusinessMonthEnd.is_month_start (ts)

如果时间戳发生在月份开始时,则返回布尔值。

BusinessMonthEnd.is_month_end (ts)

如果时间戳发生在月份结束时,则返回布尔值。

BusinessMonthEnd.is_quarter_start (ts)

如果时间戳发生在季度开始时,则返回布尔值。

BusinessMonthEnd.is_quarter_end (ts)

如果时间戳发生在季度结束时,则返回布尔值。

BusinessMonthEnd.is_year_start (ts)

如果时间戳发生在年份开始时,则返回布尔值。

BusinessMonthEnd.is_year_end (ts)

如果时间戳发生在年份结束时,则返回布尔值。

BusinessMonthBegin#

BusinessMonthBegin

DateOffset of one month at the first business day.

别名:

属性#

:py:obj:`BusinessMonthBegin.freqstr <pandas.tseries.offsets.BusinessMonthBegin.freqstr> 

返回表示频率的字符串。

:py:obj:`BusinessMonthBegin.kwds <pandas.tseries.offsets.BusinessMonthBegin.kwds> 

返回偏移量的额外参数字典。

:py:obj:`BusinessMonthBegin.name <pandas.tseries.offsets.BusinessMonthBegin.name> 

返回表示基本频率的字符串。

:py:obj:`BusinessMonthBegin.nanos <pandas.tseries.offsets.BusinessMonthBegin.nanos> 

:py:obj:`BusinessMonthBegin.normalize <pandas.tseries.offsets.BusinessMonthBegin.normalize> 

:py:obj:`BusinessMonthBegin.rule_code <pandas.tseries.offsets.BusinessMonthBegin.rule_code> 

:py:obj:`BusinessMonthBegin.n <pandas.tseries.offsets.BusinessMonthBegin.n> 

Methods#

:py:obj:`BusinessMonthBegin.copy <pandas.tseries.offsets.BusinessMonthBegin.copy> ()

返回频率的副本。

:py:obj:`BusinessMonthBegin.is_anchored <pandas.tseries.offsets.BusinessMonthBegin.is_anchored> ()

(已弃用) 返回频率是否为单位频率 (n=1) 的布尔值.

:py:obj:`BusinessMonthBegin.is_on_offset <pandas.tseries.offsets.BusinessMonthBegin.is_on_offset> (dt)

如果时间戳与此频率相交,则返回布尔值。

:py:obj:`BusinessMonthBegin.is_month_start <pandas.tseries.offsets.BusinessMonthBegin.is_month_start> (ts)

如果时间戳发生在月份开始时,则返回布尔值。

:py:obj:`BusinessMonthBegin.is_month_end <pandas.tseries.offsets.BusinessMonthBegin.is_month_end> (ts)

如果时间戳发生在月份结束时,则返回布尔值。

:py:obj:`BusinessMonthBegin.is_quarter_start <pandas.tseries.offsets.BusinessMonthBegin.is_quarter_start> (ts)

如果时间戳发生在季度开始时,则返回布尔值。

:py:obj:`BusinessMonthBegin.is_quarter_end <pandas.tseries.offsets.BusinessMonthBegin.is_quarter_end> (ts)

如果时间戳发生在季度结束时,则返回布尔值。

:py:obj:`BusinessMonthBegin.is_year_start <pandas.tseries.offsets.BusinessMonthBegin.is_year_start> (ts)

如果时间戳发生在年份开始时,则返回布尔值。

:py:obj:`BusinessMonthBegin.is_year_end <pandas.tseries.offsets.BusinessMonthBegin.is_year_end> (ts)

如果时间戳发生在年份结束时,则返回布尔值。

CustomBusinessMonthEnd#

:py:obj:`CustomBusinessMonthEnd <pandas.tseries.offsets.CustomBusinessMonthEnd> 

DateOffset 的子类,表示自定义的营业月份。

别名:

:py:obj:`CBMonthEnd <pandas.tseries.offsets.CBMonthEnd> 

CustomBusinessMonthEnd 的别名

属性#

:py:obj:`CustomBusinessMonthEnd.freqstr <pandas.tseries.offsets.CustomBusinessMonthEnd.freqstr> 

返回表示频率的字符串。

:py:obj:`CustomBusinessMonthEnd.kwds <pandas.tseries.offsets.CustomBusinessMonthEnd.kwds> 

返回偏移量的额外参数字典。

:py:obj:`CustomBusinessMonthEnd.m_offset <pandas.tseries.offsets.CustomBusinessMonthEnd.m_offset> 

:py:obj:`CustomBusinessMonthEnd.name <pandas.tseries.offsets.CustomBusinessMonthEnd.name> 

返回表示基本频率的字符串。

:py:obj:`CustomBusinessMonthEnd.nanos <pandas.tseries.offsets.CustomBusinessMonthEnd.nanos> 

:py:obj:`CustomBusinessMonthEnd.normalize <pandas.tseries.offsets.CustomBusinessMonthEnd.normalize> 

:py:obj:`CustomBusinessMonthEnd.rule_code <pandas.tseries.offsets.CustomBusinessMonthEnd.rule_code> 

:py:obj:`CustomBusinessMonthEnd.n <pandas.tseries.offsets.CustomBusinessMonthEnd.n> 

:py:obj:`CustomBusinessMonthEnd.weekmask <pandas.tseries.offsets.CustomBusinessMonthEnd.weekmask> 

:py:obj:`CustomBusinessMonthEnd.calendar <pandas.tseries.offsets.CustomBusinessMonthEnd.calendar> 

:py:obj:`CustomBusinessMonthEnd.holidays <pandas.tseries.offsets.CustomBusinessMonthEnd.holidays> 

Methods#

:py:obj:`CustomBusinessMonthEnd.copy <pandas.tseries.offsets.CustomBusinessMonthEnd.copy> ()

返回频率的副本。

:py:obj:`CustomBusinessMonthEnd.is_anchored <pandas.tseries.offsets.CustomBusinessMonthEnd.is_anchored> ()

(已弃用) 返回频率是否为单位频率 (n=1) 的布尔值.

:py:obj:`CustomBusinessMonthEnd.is_on_offset <pandas.tseries.offsets.CustomBusinessMonthEnd.is_on_offset> (dt)

如果时间戳与此频率相交,则返回布尔值。

:py:obj:`CustomBusinessMonthEnd.is_month_start <pandas.tseries.offsets.CustomBusinessMonthEnd.is_month_start> (ts)

如果时间戳发生在月份开始时,则返回布尔值。

:py:obj:`CustomBusinessMonthEnd.is_month_end <pandas.tseries.offsets.CustomBusinessMonthEnd.is_month_end> (ts)

如果时间戳发生在月份结束时,则返回布尔值。

:py:obj:`CustomBusinessMonthEnd.is_quarter_start <pandas.tseries.offsets.CustomBusinessMonthEnd.is_quarter_start> (ts)

如果时间戳发生在季度开始时,则返回布尔值。

:py:obj:`CustomBusinessMonthEnd.is_quarter_end <pandas.tseries.offsets.CustomBusinessMonthEnd.is_quarter_end> (ts)

如果时间戳发生在季度结束时,则返回布尔值。

:py:obj:`CustomBusinessMonthEnd.is_year_start <pandas.tseries.offsets.CustomBusinessMonthEnd.is_year_start> (ts)

如果时间戳发生在年份开始时,则返回布尔值。

:py:obj:`CustomBusinessMonthEnd.is_year_end <pandas.tseries.offsets.CustomBusinessMonthEnd.is_year_end> (ts)

如果时间戳发生在年份结束时,则返回布尔值。

CustomBusinessMonthBegin#

:py:obj:`CustomBusinessMonthBegin <pandas.tseries.offsets.CustomBusinessMonthBegin> 

DateOffset 的子类,表示自定义的营业月份。

别名:

:py:obj:`CBMonthBegin <pandas.tseries.offsets.CBMonthBegin> 

CustomBusinessMonthBegin 的别名

属性#

Methods#

CustomBusinessMonthBegin.copy ()

返回频率的副本。

CustomBusinessMonthBegin.is_anchored ()

(已弃用) 返回频率是否为单位频率 (n=1) 的布尔值.

CustomBusinessMonthBegin.is_on_offset (dt)

如果时间戳与此频率相交,则返回布尔值。

CustomBusinessMonthBegin.is_month_start (ts)

如果时间戳发生在月份开始时,则返回布尔值。

CustomBusinessMonthBegin.is_month_end (ts)

如果时间戳发生在月份结束时,则返回布尔值。

CustomBusinessMonthBegin.is_quarter_start (ts)

如果时间戳发生在季度开始时,则返回布尔值。

CustomBusinessMonthBegin.is_quarter_end (ts)

如果时间戳发生在季度结束时,则返回布尔值。

CustomBusinessMonthBegin.is_year_start (ts)

如果时间戳发生在年份开始时,则返回布尔值。

CustomBusinessMonthBegin.is_year_end (ts)

如果时间戳发生在年份结束时,则返回布尔值。

SemiMonthEnd#

SemiMonthEnd 

每月两个DateOffset,分别在月末和指定日期重复。

属性#

SemiMonthEnd.freqstr 

返回表示频率的字符串。

SemiMonthEnd.kwds 

返回偏移量的额外参数字典。

SemiMonthEnd.name 

返回表示基本频率的字符串。

SemiMonthEnd.nanos 

SemiMonthEnd.normalize 

SemiMonthEnd.rule_code 

SemiMonthEnd.n 

SemiMonthEnd.day_of_month 

Methods#

SemiMonthEnd.copy ()

返回频率的副本。

SemiMonthEnd.is_anchored ()

(已弃用) 返回频率是否为单位频率 (n=1) 的布尔值.

SemiMonthEnd.is_on_offset (dt)

如果时间戳与此频率相交,则返回布尔值。

SemiMonthEnd.is_month_start (ts)

如果时间戳发生在月份开始时,则返回布尔值。

SemiMonthEnd.is_month_end (ts)

如果时间戳发生在月份结束时,则返回布尔值。

SemiMonthEnd.is_quarter_start (ts)

如果时间戳发生在季度开始时,则返回布尔值。

SemiMonthEnd.is_quarter_end (ts)

如果时间戳发生在季度结束时,则返回布尔值。

SemiMonthEnd.is_year_start (ts)

如果时间戳发生在年份开始时,则返回布尔值。

SemiMonthEnd.is_year_end (ts)

如果时间戳发生在年份结束时,则返回布尔值。

SemiMonthBegin#

SemiMonthBegin 

每月两个DateOffset,分别在第一个和指定日期重复。

属性#

SemiMonthBegin.freqstr 

返回表示频率的字符串。

SemiMonthBegin.kwds 

返回偏移量的额外参数字典。

SemiMonthBegin.name 

返回表示基本频率的字符串。

SemiMonthBegin.nanos 

SemiMonthBegin.normalize 

SemiMonthBegin.rule_code 

SemiMonthBegin.n 

SemiMonthBegin.day_of_month 

Methods#

SemiMonthBegin.copy ()

返回频率的副本。

SemiMonthBegin.is_anchored ()

(已弃用) 返回频率是否为单位频率 (n=1) 的布尔值.

SemiMonthBegin.is_on_offset (dt)

如果时间戳与此频率相交,则返回布尔值。

SemiMonthBegin.is_month_start (ts)

如果时间戳发生在月份开始时,则返回布尔值。

SemiMonthBegin.is_month_end (ts)

如果时间戳发生在月份结束时,则返回布尔值。

SemiMonthBegin.is_quarter_start (ts)

如果时间戳发生在季度开始时,则返回布尔值。

SemiMonthBegin.is_quarter_end (ts)

如果时间戳发生在季度结束时,则返回布尔值。

SemiMonthBegin.is_year_start (ts)

如果时间戳发生在年份开始时,则返回布尔值。

SemiMonthBegin.is_year_end (ts)

如果时间戳发生在年份结束时,则返回布尔值。

#

Week 

每周偏移。

属性#

Week.freqstr 

返回表示频率的字符串。

Week.kwds 

返回偏移量的额外参数字典。

Week.name 

返回表示基本频率的字符串。

Week.nanos 

Week.normalize 

Week.rule_code 

Week.n 

Week.weekday 

Methods#

Week.copy ()

返回频率的副本。

Week.is_anchored ()

如果频率是单位频率(n=1),则返回布尔值。

Week.is_on_offset (dt)

如果时间戳与此频率相交,则返回布尔值。

Week.is_month_start (ts)

如果时间戳发生在月份开始时,则返回布尔值。

Week.is_month_end (ts)

如果时间戳发生在月份结束时,则返回布尔值。

Week.is_quarter_start (ts)

如果时间戳发生在季度开始时,则返回布尔值。

Week.is_quarter_end (ts)

如果时间戳发生在季度结束时,则返回布尔值。

Week.is_year_start (ts)

如果时间戳发生在年份开始时,则返回布尔值。

Week.is_year_end (ts)

如果时间戳发生在年份结束时,则返回布尔值。

周内#

WeekOfMonth 

描述每月日期,例如“每个月的第二周的星期二”。

属性#

WeekOfMonth.freqstr 

返回表示频率的字符串。

WeekOfMonth.kwds 

返回偏移量的额外参数字典。

WeekOfMonth.name 

返回表示基本频率的字符串。

WeekOfMonth.nanos 

WeekOfMonth.normalize 

WeekOfMonth.rule_code 

WeekOfMonth.n 

WeekOfMonth.week 

Methods#

WeekOfMonth.copy ()

返回频率的副本。

WeekOfMonth.is_anchored ()

(已弃用) 返回频率是否为单位频率 (n=1) 的布尔值.

WeekOfMonth.is_on_offset (dt)

如果时间戳与此频率相交,则返回布尔值。

WeekOfMonth.weekday 

WeekOfMonth.is_month_start (ts)

如果时间戳发生在月份开始时,则返回布尔值。

WeekOfMonth.is_month_end (ts)

如果时间戳发生在月份结束时,则返回布尔值。

WeekOfMonth.is_quarter_start (ts)

如果时间戳发生在季度开始时,则返回布尔值。

WeekOfMonth.is_quarter_end (ts)

如果时间戳发生在季度结束时,则返回布尔值。

WeekOfMonth.is_year_start (ts)

如果时间戳发生在年份开始时,则返回布尔值。

WeekOfMonth.is_year_end (ts)

如果时间戳发生在年份结束时,则返回布尔值。

月内最后一周#

LastWeekOfMonth Đ

描述月中最后一周的日期。

属性#

LastWeekOfMonth.freqstr Đ

返回表示频率的字符串。

LastWeekOfMonth.kwds Đ

返回偏移量的额外参数字典。

LastWeekOfMonth.name Đ

返回表示基本频率的字符串。

LastWeekOfMonth.nanos Đ

LastWeekOfMonth.normalize Đ

LastWeekOfMonth.rule_code Đ

LastWeekOfMonth.n Đ

LastWeekOfMonth.weekday Đ

LastWeekOfMonth.week Đ

Methods#

LastWeekOfMonth.copy Đ ()

返回频率的副本。

LastWeekOfMonth.is_anchored Đ ()

(已弃用) 返回频率是否为单位频率 (n=1) 的布尔值.

LastWeekOfMonth.is_on_offset Đ (dt)

如果时间戳与此频率相交,则返回布尔值。

LastWeekOfMonth.is_month_start Đ (ts)

如果时间戳发生在月份开始时,则返回布尔值。

LastWeekOfMonth.is_month_end Đ (ts)

如果时间戳发生在月份结束时,则返回布尔值。

LastWeekOfMonth.is_quarter_start Đ (ts)

如果时间戳发生在季度开始时,则返回布尔值。

LastWeekOfMonth.is_quarter_end Đ (ts)

如果时间戳发生在季度结束时,则返回布尔值。

LastWeekOfMonth.is_year_start Đ (ts)

如果时间戳发生在年份开始时,则返回布尔值。

LastWeekOfMonth.is_year_end Đ (ts)

如果时间戳发生在年份结束时,则返回布尔值。

Base Quarter End#

BQuarterEnd Đ

DateOffset 在每个季度的最后一个工作日之间递增.

属性#

BQuarterEnd.freqstr Đ

返回表示频率的字符串。

BQuarterEnd.kwds Đ

返回偏移量的额外参数字典。

BQuarterEnd.name Đ

返回表示基本频率的字符串。

BQuarterEnd.nanos Đ

BQuarterEnd.normalize Đ

BQuarterEnd.rule_code Đ

BQuarterEnd.n Đ

BQuarterEnd.startingMonth Đ

Methods#

BQuarterEnd.copy Đ ()

返回频率的副本。

BQuarterEnd.is_anchored Đ ()

如果频率是单位频率(n=1),则返回布尔值。

BQuarterEnd.is_on_offset Đ (dt)

如果时间戳与此频率相交,则返回布尔值。

BQuarterEnd.is_month_start Đ (ts)

如果时间戳发生在月份开始时,则返回布尔值。

BQuarterEnd.is_month_end Đ (ts)

如果时间戳发生在月份结束时,则返回布尔值。

BQuarterEnd.is_quarter_start Đ (ts)

如果时间戳发生在季度开始时,则返回布尔值。

BQuarterEnd.is_quarter_end Đ (ts)

如果时间戳发生在季度结束时,则返回布尔值。

BQuarterEnd.is_year_start Đ (ts)

如果时间戳发生在年份开始时,则返回布尔值。

BQuarterEnd.is_year_end Đ (ts)

如果时间戳发生在年份结束时,则返回布尔值。

Base Quarter Begin#

BQuarterBegin Đ

DateOffset 在每个季度的第一个工作日之间进行增量。

属性#

BQuarterBegin.freqstr Đ

返回表示频率的字符串。

BQuarterBegin.kwds Đ

返回偏移量的额外参数字典。

BQuarterBegin.name Đ

返回表示基本频率的字符串。

BQuarterBegin.nanos Đ

BQuarterBegin.normalize Đ

BQuarterBegin.rule_code Đ

BQuarterBegin.n Đ

BQuarterBegin.startingMonth Đ

Methods#

BQuarterBegin.copy Đ ()

返回频率的副本。

BQuarterBegin.is_anchored Đ ()

如果频率是单位频率(n=1),则返回布尔值。

BQuarterBegin.is_on_offset Đ (dt)

如果时间戳与此频率相交,则返回布尔值。

BQuarterBegin.is_month_start (ts)

如果时间戳发生在月份开始时,则返回布尔值。

BQuarterBegin.is_month_end (ts)

如果时间戳发生在月份结束时,则返回布尔值。

BQuarterBegin.is_quarter_start (ts)

如果时间戳发生在季度开始时,则返回布尔值。

BQuarterBegin.is_quarter_end (ts)

如果时间戳发生在季度结束时,则返回布尔值。

BQuarterBegin.is_year_start (ts)

如果时间戳发生在年份开始时,则返回布尔值。

BQuarterBegin.is_year_end (ts)

如果时间戳发生在年份结束时,则返回布尔值。

QuarterEnd#

QuarterEnd 

DateOffset 在季度结束日期之间递增。

属性#

QuarterEnd.freqstr 

返回表示频率的字符串。

QuarterEnd.kwds 

返回偏移量的额外参数字典。

QuarterEnd.name 

返回表示基本频率的字符串。

QuarterEnd.nanos 

QuarterEnd.normalize 

QuarterEnd.rule_code 

QuarterEnd.n 

QuarterEnd.startingMonth 

Methods#

QuarterEnd.copy ()

返回频率的副本。

QuarterEnd.is_anchored ()

如果频率是单位频率(n=1),则返回布尔值。

QuarterEnd.is_on_offset (dt)

如果时间戳与此频率相交,则返回布尔值。

QuarterEnd.is_month_start (ts)

如果时间戳发生在月份开始时,则返回布尔值。

QuarterEnd.is_month_end (ts)

如果时间戳发生在月份结束时,则返回布尔值。

QuarterEnd.is_quarter_start (ts)

如果时间戳发生在季度开始时,则返回布尔值。

QuarterEnd.is_quarter_end (ts)

如果时间戳发生在季度结束时,则返回布尔值。

QuarterEnd.is_year_start (ts)

如果时间戳发生在年份开始时,则返回布尔值。

QuarterEnd.is_year_end (ts)

如果时间戳发生在年份结束时,则返回布尔值。

QuarterBegin#

QuarterBegin 

DateOffset 在季度开始日期之间递增。

属性#

QuarterBegin.freqstr 

返回表示频率的字符串。

QuarterBegin.kwds 

返回偏移量的额外参数字典。

QuarterBegin.name 

返回表示基本频率的字符串。

QuarterBegin.nanos 

QuarterBegin.normalize 

QuarterBegin.rule_code 

QuarterBegin.n 

QuarterBegin.startingMonth 

Methods#

QuarterBegin.copy ()

返回频率的副本。

QuarterBegin.is_anchored ()

如果频率是单位频率(n=1),则返回布尔值。

QuarterBegin.is_on_offset (dt)

如果时间戳与此频率相交,则返回布尔值。

QuarterBegin.is_month_start (ts)

如果时间戳发生在月份开始时,则返回布尔值。

QuarterBegin.is_month_end (ts)

如果时间戳发生在月份结束时,则返回布尔值。

QuarterBegin.is_quarter_start (ts)

如果时间戳发生在季度开始时,则返回布尔值。

QuarterBegin.is_quarter_end (ts)

如果时间戳发生在季度结束时,则返回布尔值。

QuarterBegin.is_year_start (ts)

如果时间戳发生在年份开始时,则返回布尔值。

QuarterBegin.is_year_end (ts)

如果时间戳发生在年份结束时,则返回布尔值。

BYearEnd#

BYearEnd 

DateOffset 在一年最后一个工作日之间进行递增。

属性#

BYearEnd.freqstr 

返回表示频率的字符串。

BYearEnd.kwds 

返回偏移量的额外参数字典。

BYearEnd.name 

返回表示基本频率的字符串。

BYearEnd.nanos 

BYearEnd.normalize 

BYearEnd.rule_code 

BYearEnd.n 

BYearEnd.month

Methods#

BYearEnd.copy ()

返回频率的副本。

BYearEnd.is_anchored ()

(已弃用) 返回频率是否为单位频率 (n=1) 的布尔值.

BYearEnd.is_on_offset (dt)

如果时间戳与此频率相交,则返回布尔值。

BYearEnd.is_month_start (ts)

如果时间戳发生在月份开始时,则返回布尔值。

BYearEnd.is_month_end (ts)

如果时间戳发生在月份结束时,则返回布尔值。

BYearEnd.is_quarter_start (ts)

如果时间戳发生在季度开始时,则返回布尔值。

BYearEnd.is_quarter_end (ts)

如果时间戳发生在季度结束时,则返回布尔值。

BYearEnd.is_year_start (ts)

如果时间戳发生在年份开始时,则返回布尔值。

BYearEnd.is_year_end (ts)

如果时间戳发生在年份结束时,则返回布尔值。

BYearBegin#

BYearBegin

DateOffset 在一年中的第一个工作日之间递增.

属性#

BYearBegin.freqstr

返回表示频率的字符串。

BYearBegin.kwds

返回偏移量的额外参数字典。

BYearBegin.name

返回表示基本频率的字符串。

BYearBegin.nanos

BYearBegin.normalize

BYearBegin.rule_code

BYearBegin.n

BYearBegin.month

Methods#

BYearBegin.copy ()

返回频率的副本。

BYearBegin.is_anchored ()

(已弃用) 返回频率是否为单位频率 (n=1) 的布尔值.

BYearBegin.is_on_offset (dt)

如果时间戳与此频率相交,则返回布尔值。

BYearBegin.is_month_start (ts)

如果时间戳发生在月份开始时,则返回布尔值。

BYearBegin.is_month_end (ts)

如果时间戳发生在月份结束时,则返回布尔值。

BYearBegin.is_quarter_start (ts)

如果时间戳发生在季度开始时,则返回布尔值。

BYearBegin.is_quarter_end (ts)

如果时间戳发生在季度结束时,则返回布尔值。

BYearBegin.is_year_start (ts)

如果时间戳发生在年份开始时,则返回布尔值。

BYearBegin.is_year_end (ts)

如果时间戳发生在年份结束时,则返回布尔值。

YearEnd#

YearEnd

DateOffset increments between calendar year end dates.

属性#

YearEnd.freqstr

返回表示频率的字符串。

YearEnd.kwds

返回偏移量的额外参数字典。

YearEnd.name

返回表示基本频率的字符串。

YearEnd.nanos

YearEnd.normalize

YearEnd.rule_code

YearEnd.n

YearEnd.month

Methods#

YearEnd.copy ()

返回频率的副本。

YearEnd.is_anchored ()

(已弃用) 返回频率是否为单位频率 (n=1) 的布尔值.

YearEnd.is_on_offset (dt)

如果时间戳与此频率相交,则返回布尔值。

YearEnd.is_month_start (ts)

如果时间戳发生在月份开始时,则返回布尔值。

YearEnd.is_month_end (ts)

如果时间戳发生在月份结束时,则返回布尔值。

YearEnd.is_quarter_start (ts)

如果时间戳发生在季度开始时,则返回布尔值。

YearEnd.is_quarter_end (ts)

如果时间戳发生在季度结束时,则返回布尔值。

YearEnd.is_year_start (ts)

如果时间戳发生在年份开始时,则返回布尔值。

YearEnd.is_year_end (ts)

如果时间戳发生在年份结束时,则返回布尔值。

YearBegin#

YearBegin

DateOffset 在日历年开始日期之间递增。

属性#

YearBegin.freqstr

返回表示频率的字符串。

YearBegin.kwds

返回偏移量的额外参数字典。

YearBegin.name

返回表示基本频率的字符串。

YearBegin.nanos

YearBegin.normalize

YearBegin.rule_code

YearBegin.n

YearBegin.month

Methods#

YearBegin.copy ( )

返回频率的副本。

YearBegin.is_anchored ( )

(已弃用) 返回频率是否为单位频率 (n=1) 的布尔值.

YearBegin.is_on_offset (dt)

如果时间戳与此频率相交,则返回布尔值。

YearBegin.is_month_start (ts)

如果时间戳发生在月份开始时,则返回布尔值。

YearBegin.is_month_end (ts)

如果时间戳发生在月份结束时,则返回布尔值。

YearBegin.is_quarter_start (ts)

如果时间戳发生在季度开始时,则返回布尔值。

YearBegin.is_quarter_end (ts)

如果时间戳发生在季度结束时,则返回布尔值。

YearBegin.is_year_start (ts)

如果时间戳发生在年份开始时,则返回布尔值。

YearBegin.is_year_end (ts)

如果时间戳发生在年份结束时,则返回布尔值。

FY5253#

FY5253

描述52-53周的财年。

属性#

FY5253.freqstr

返回表示频率的字符串。

FY5253.kwds

返回偏移量的额外参数字典。

FY5253.name

返回表示基本频率的字符串。

FY5253.nanos

FY5253.normalize

FY5253.rule_code

FY5253.n

FY5253.startingMonth

FY5253.variation

FY5253.weekday

Methods#

FY5253.copy ( )

返回频率的副本。

FY5253.get_rule_code_suffix ( )

FY5253.get_year_end (dt)

FY5253.is_anchored ( )

如果频率是单位频率(n=1),则返回布尔值。

FY5253.is_on_offset (dt)

如果时间戳与此频率相交,则返回布尔值。

FY5253.is_month_start (ts)

如果时间戳发生在月份开始时,则返回布尔值。

FY5253.is_month_end (ts)

如果时间戳发生在月份结束时,则返回布尔值。

FY5253.is_quarter_start (ts)

如果时间戳发生在季度开始时,则返回布尔值。

FY5253.is_quarter_end (ts)

如果时间戳发生在季度结束时,则返回布尔值。

FY5253.is_year_start (ts)

如果时间戳发生在年份开始时,则返回布尔值。

FY5253.is_year_end (ts)

如果时间戳发生在年份结束时,则返回布尔值。

FY5253Quarter#

FY5253Quarter

DateOffset 52-53 周财年的业务季度之间的增量。

属性#

Methods#

FY5253Quarter.copy ( )

返回频率的副本。

FY5253Quarter.get_rule_code_suffix ( )

FY5253Quarter.get_weeks (dt)

FY5253Quarter.is_anchored ( )

如果频率是单位频率(n=1),则返回布尔值。

FY5253Quarter.is_on_offset (dt)

如果时间戳与此频率相交,则返回布尔值。

FY5253Quarter.year_has_extra_week (dt)

FY5253Quarter.is_month_start(ts)

如果时间戳发生在月份开始时,则返回布尔值。

FY5253Quarter.is_month_end(ts)

如果时间戳发生在月份结束时,则返回布尔值。

FY5253Quarter.is_quarter_start(ts)

如果时间戳发生在季度开始时,则返回布尔值。

FY5253Quarter.is_quarter_end(ts)

如果时间戳发生在季度结束时,则返回布尔值。

FY5253Quarter.is_year_start(ts)

如果时间戳发生在年份开始时,则返回布尔值。

FY5253Quarter.is_year_end(ts)

如果时间戳发生在年份结束时,则返回布尔值。

Easter 复活节#

Easter

使用 dateutil 定义的逻辑的复活节假期的 DateOffset。

属性#

Easter.freqstr

返回表示频率的字符串。

Easter.kwds

返回偏移量的额外参数字典。

Easter.name

返回表示基本频率的字符串。

Easter.nanos

Easter.normalize

Easter.rule_code

Easter.n

Methods#

Easter.copy()

返回频率的副本。

Easter.is_anchored()

(已弃用) 返回频率是否为单位频率 (n=1) 的布尔值.

Easter.is_on_offset(dt)

如果时间戳与此频率相交,则返回布尔值。

Easter.is_month_start(ts)

如果时间戳发生在月份开始时,则返回布尔值。

Easter.is_month_end(ts)

如果时间戳发生在月份结束时,则返回布尔值。

Easter.is_quarter_start(ts)

如果时间戳发生在季度开始时,则返回布尔值。

Easter.is_quarter_end(ts)

如果时间戳发生在季度结束时,则返回布尔值。

Easter.is_year_start(ts)

如果时间戳发生在年份开始时,则返回布尔值。

Easter.is_year_end(ts)

如果时间戳发生在年份结束时,则返回布尔值。

Tick 刻度#

属性#

Tick.delta

Tick.freqstr

返回表示频率的字符串。

Tick.kwds

返回偏移量的额外参数字典。

Tick.name

返回表示基本频率的字符串。

Tick.nanos

返回纳秒总数。

Tick.normalize

Tick.rule_code

Tick.n

Methods#

Tick.copy()

返回频率的副本。

Tick.is_anchored()

(已弃用)返回 False。

Tick.is_on_offset(dt)

如果时间戳与此频率相交,则返回布尔值。

Tick.is_month_start(ts)

如果时间戳发生在月份开始时,则返回布尔值。

Tick.is_month_end(ts)

如果时间戳发生在月份结束时,则返回布尔值。

Tick.is_quarter_start(ts)

如果时间戳发生在季度开始时,则返回布尔值。

Tick.is_quarter_end(ts)

如果时间戳发生在季度结束时,则返回布尔值。

Tick.is_year_start(ts)

如果时间戳发生在年份开始时,则返回布尔值。

Tick.is_year_end(ts)

如果时间戳发生在年份结束时,则返回布尔值。

Day 日#

Day

偏移 n 天。

属性#

Day.delta

Day.freqstr

返回表示频率的字符串。

Day.kwds

返回偏移量的额外参数字典。

Day.name

返回表示基本频率的字符串。

Day.nanos

返回纳秒总数。

Day.normalize

Day.rule_code

Day.n

Methods#

Day.copy()

返回频率的副本。

Day.is_anchored()

(已弃用)返回 False。

Day.is_on_offset(dt)

如果时间戳与此频率相交,则返回布尔值。

Day.is_month_start(ts)

如果时间戳发生在月份开始时,则返回布尔值。

Day.is_month_end(ts)

如果时间戳发生在月份结束时,则返回布尔值。

Day.is_quarter_start(ts)

如果时间戳发生在季度开始时,则返回布尔值。

Day.is_quarter_end(ts)

如果时间戳发生在季度结束时,则返回布尔值。

Day.is_year_start (ts)

如果时间戳发生在年份开始时,则返回布尔值。

Day.is_year_end (ts)

如果时间戳发生在年份结束时,则返回布尔值。

Hour#

Hour

Offset n 小时。

属性#

Hour.delta

Hour.freqstr

返回表示频率的字符串。

Hour.kwds

返回偏移量的额外参数字典。

Hour.name

返回表示基本频率的字符串。

Hour.nanos

返回纳秒总数。

Hour.normalize

Hour.rule_code

Hour.n

Methods#

Hour.copy ()

返回频率的副本。

Hour.is_anchored ()

(已弃用)返回 False。

Hour.is_on_offset (dt)

如果时间戳与此频率相交,则返回布尔值。

Hour.is_month_start (ts)

如果时间戳发生在月份开始时,则返回布尔值。

Hour.is_month_end (ts)

如果时间戳发生在月份结束时,则返回布尔值。

Hour.is_quarter_start (ts)

如果时间戳发生在季度开始时,则返回布尔值。

Hour.is_quarter_end (ts)

如果时间戳发生在季度结束时,则返回布尔值。

Hour.is_year_start (ts)

如果时间戳发生在年份开始时,则返回布尔值。

Hour.is_year_end (ts)

如果时间戳发生在年份结束时,则返回布尔值。

Minute#

Minute

指定偏移量为 n 分钟。

属性#

Minute.delta

Minute.freqstr

返回表示频率的字符串。

Minute.kwds

返回偏移量的额外参数字典。

Minute.name

返回表示基本频率的字符串。

Minute.nanos

返回纳秒总数。

Minute.normalize

Minute.rule_code

Minute.n

Methods#

Minute.copy ()

返回频率的副本。

Minute.is_anchored ()

(已弃用)返回 False。

Minute.is_on_offset (dt)

如果时间戳与此频率相交,则返回布尔值。

Minute.is_month_start (ts)

如果时间戳发生在月份开始时,则返回布尔值。

Minute.is_month_end (ts)

如果时间戳发生在月份结束时,则返回布尔值。

Minute.is_quarter_start (ts)

如果时间戳发生在季度开始时,则返回布尔值。

Minute.is_quarter_end (ts)

如果时间戳发生在季度结束时,则返回布尔值。

Minute.is_year_start (ts)

如果时间戳发生在年份开始时,则返回布尔值。

Minute.is_year_end (ts)

如果时间戳发生在年份结束时,则返回布尔值。

Second#

Second

Offset n 秒。

属性#

Second.delta

Second.freqstr

返回表示频率的字符串。

Second.kwds

返回偏移量的额外参数字典。

Second.name

返回表示基本频率的字符串。

Second.nanos

返回纳秒总数。

Second.normalize

Second.rule_code

Second.n

Methods#

Second.copy ()

返回频率的副本。

Second.is_anchored ()

(已弃用)返回 False。

Second.is_on_offset (dt)

如果时间戳与此频率相交,则返回布尔值。

Second.is_month_start (ts)

如果时间戳发生在月份开始时,则返回布尔值。

Second.is_month_end (ts)

如果时间戳发生在月份结束时,则返回布尔值。

Second.is_quarter_start (ts)

如果时间戳发生在季度开始时,则返回布尔值。

Second.is_quarter_end (ts)

如果时间戳发生在季度结束时,则返回布尔值。

Second.is_year_start (ts)

如果时间戳发生在年份开始时,则返回布尔值。

Second.is_year_end (ts)

如果时间戳发生在年份结束时,则返回布尔值。

Milli#

Milli

“n” 毫秒的偏移量。 (Offset n milliseconds.)

属性#

Milli.delta

Milli.freqstr

返回表示频率的字符串。

Milli.kwds

返回偏移量的额外参数字典。

Milli.name

返回表示基本频率的字符串。

Milli.nanos

返回纳秒总数。

Milli.normalize

Milli.rule_code

Milli.n

Methods#

Milli.copy ()

返回频率的副本。

Milli.is_anchored ()

(已弃用)返回 False。

Milli.is_on_offset (dt)

如果时间戳与此频率相交,则返回布尔值。

Milli.is_month_start (ts)

如果时间戳发生在月份开始时,则返回布尔值。

Milli.is_month_end (ts)

如果时间戳发生在月份结束时,则返回布尔值。

Milli.is_quarter_start (ts)

如果时间戳发生在季度开始时,则返回布尔值。

Milli.is_quarter_end (ts)

如果时间戳发生在季度结束时,则返回布尔值。

Milli.is_year_start (ts)

如果时间戳发生在年份开始时,则返回布尔值。

Milli.is_year_end (ts)

如果时间戳发生在年份结束时,则返回布尔值。

Micro#

Micro

“n” 微秒的偏移量。 (Offset n microseconds.)

属性#

Micro.delta

Micro.freqstr

返回表示频率的字符串。

Micro.kwds

返回偏移量的额外参数字典。

Micro.name

返回表示基本频率的字符串。

Micro.nanos

返回纳秒总数。

Micro.normalize

Micro.rule_code

Micro.n

Methods#

Micro.copy ()

返回频率的副本。

Micro.is_anchored ()

(已弃用)返回 False。

Micro.is_on_offset (dt)

如果时间戳与此频率相交,则返回布尔值。

Micro.is_month_start (ts)

如果时间戳发生在月份开始时,则返回布尔值。

Micro.is_month_end (ts)

如果时间戳发生在月份结束时,则返回布尔值。

Micro.is_quarter_start (ts)

如果时间戳发生在季度开始时,则返回布尔值。

Micro.is_quarter_end (ts)

如果时间戳发生在季度结束时,则返回布尔值。

Micro.is_year_start (ts)

如果时间戳发生在年份开始时,则返回布尔值。

Micro.is_year_end (ts)

如果时间戳发生在年份结束时,则返回布尔值。

Nano#

Nano

偏移量为 n 纳秒。

属性#

Nano.delta

Nano.freqstr

返回表示频率的字符串。

Nano.kwds

返回偏移量的额外参数字典。

Nano.name

返回表示基本频率的字符串。

Nano.nanos

返回纳秒总数。

Nano.normalize

Nano.rule_code

Nano.n

Methods#

Nano.copy ()

返回频率的副本。

Nano.is_anchored ()

(已弃用)返回 False。

Nano.is_on_offset (dt)

如果时间戳与此频率相交,则返回布尔值。

Nano.is_month_start (ts)

如果时间戳发生在月份开始时,则返回布尔值。

Nano.is_month_end (ts)

如果时间戳发生在月份结束时,则返回布尔值。

Nano.is_quarter_start (ts)

如果时间戳发生在季度开始时,则返回布尔值。

Nano.is_quarter_end (ts)

如果时间戳发生在季度结束时,则返回布尔值。

Nano.is_year_start (ts)

如果时间戳发生在年份开始时,则返回布尔值。

Nano.is_year_end (ts)

如果时间戳发生在年份结束时,则返回布尔值。

Frequencies#

to_offset (freq[, is_period])

从字符串或 datetime.timedelta 对象返回 DateOffset 对象。