rex.utilities.utilities.check_tz

check_tz(time_index)[source]

Check datetime index for timezone, if None set to UTC

Parameters:

time_index (pandas.DatatimeIndex) – DatetimeIndex to check timezone for

Returns:

time_index (pandas.DatatimeIndex) – Updated DatetimeIndex with timezone set