timeframe.from_seconds
The timeframe label for a length in seconds: 300 gives "5m", 3600 "1h", 86400 "1D", 604800 "1W".
timeframe.from_seconds(seconds: int) -> string
Parameters
secondsint: A length in seconds, above 0 (a fraction is cut off); 0, below 0 or na gives na.
Example
tf = timeframe.from_seconds(timeframe.in_seconds * 3)