timeframe.in_seconds

Timeframe length in seconds (months count as 30 days).

timeframe.in_seconds(timeframe: simple string) -> int

Parameters

Example

mins = timeframe.in_seconds("1h") / 60