Expand description
Time frames, period conversions and date formatting.
Enums§
- Time
Frame - Represents different timeframes for volatility calculations.
Functions§
- convert_
time_ frame - Converts a value from one TimeFrame to another.
- get_
today_ formatted - Returns the current date formatted as “dd-mmm-yyyy” in lowercase.
- get_
today_ or_ tomorrow_ formatted - Formats the current date or the next day’s date based on the current UTC time.
- get_
tomorrow_ formatted - Returns tomorrow’s date in “dd-mmm-yyyy” format (lowercase).
- get_
x_ days_ formatted - Formats a date a specified number of days from the current date.
- get_
x_ days_ formatted_ pos - Returns a formatted date string representing the date
xdays in the future. - units_
per_ year - Returns how many units of the given
TimeFramefit into a calendar year as aPositive. Used by annualisation helpers (volatility, yield curves) to scale per-period values to a standardised annual basis.