libmirrors.py

mirrors.libmirrors.t2s(s)[source]

Converts human readable time to seconds.

Parameters:s (str) – Human readable time string (ex. 5m or 2h)
Return type:int
Returns:int time converted to seconds