Skip to main content

current_utc

Current time in UTC. Returns:

current_utc_str

Current time in UTC in string format. Returns:

to_offset

Convert a frequency-like object to pd.DateOffset. Parameters: Returns:

to_timedelta

Convert a frequency-like object to a pandas Timedelta. Parameters: Returns: Examples:

to_timedelta64

Convert a frequency-like object to a numpy timedelta64. Parameters: Returns: Examples:

time_to_timedelta

Convert a time-like object into pd.Timedelta. Parameters: Raises: Returns: Examples:

to_timestamp

Parse the input as a pd.Timestamp. Parameters: Raises: Returns: Examples:

to_datetime

Parse the input as a datetime.datetime. Parameters: Returns: Examples:

to_freq

Convert a frequency-like object to a pandas DateOffset or Timedelta. Parameters: Returns: Examples:

date_range

Generate a fixed frequency DatetimeIndex, preprocessing the inputs. Parameters: Returns: Examples:

prepare_dt_index

Try converting an index to a datetime index. Parameters: Returns: Raises: Examples:

try_align_to_dt_index

Try aligning an index to another datetime index. Parameters: Returns: Examples:

try_align_dt_to_index

Try aligning a datetime-like object to another datetime index. Parameters: Returns: Examples:

auto_detect_freq

Auto-detect frequency from a datetime index. Parameters: Returns: Examples:

parse_index_freq

Parse frequency from a datetime index. Parameters: Returns: Examples:

infer_index_freq

Infer frequency of a datetime index if freq is None, otherwise convert to the required frequency. Parameters: Raises: Returns: Examples:

get_ann_factor

Get annualization factor Parameters: Returns:

FreqHandler

Frequency handler. Parameters:

Static methods

parse_time_str

Parse DTC instance from a time string. Parameters: Raises: Returns:

Instance variables

  • year: int | None: The type of the None singleton.
  • month: int | None: The type of the None singleton.
  • day: int | None: The type of the None singleton.
  • weekday: int | None: The type of the None singleton.
  • hour: int | None: The type of the None singleton.
  • minute: int | None: The type of the None singleton.
  • second: int | None: The type of the None singleton.
  • nanosecond: int | None: The type of the None singleton.

Methods

has_date

Whether any date component is set. Returns:

has_weekday

Whether the weekday component is set. Returns:

has_time

Whether any time component is set. Returns:

to_time

Convert to a datetime.time instance. Returns: