Time

deker_tools.time.get_utc(dt=None)

Convert datetime with any timezone or without it to UTC.

If dt is None - UTC current time will be returned

Parameters

dt (Optional[Union[str, int, float, datetime]]) – datetime.datetime object, timestamp, datetime iso-string or None;

Return type

datetime