lair.clock#

Utility classes & functions for working with time and dates.

Functions

convert_timezones

Convert the times from one timezone to another.

datetime_accessor

Returns the datetime accessor of the object.

decimalDate2dt

Convert a decimal date to a datetime object.

diurnal

Aggregate the data to the specified frequency and compute the statistic for each group.

dt2decimalDate

Convert a datetime object to a decimal date.

periodindex_to_binedges

Convert a PeriodIndex to a list of bin edges.

regular_times_to_intervals

Convert an array of regular times to intervals of the specified length.

seasonal

Aggregate data by season and year.

time_decay_matrix

Calculate the time decay matrix for the specified times and decay.

time_difference_matrix

Calculate the time differences between each pair of times.

Classes

TimeRange

TimeRange class to represent a time range with start and stop times.

Timer

Time your code using a class, context manager, or decorator