def is_time_variable(varname, var):
    """
    Identifies if a variable is represents time
    """
    satisfied = varname.lower() == 'time'
    satisfied |= getattr(var, 'standard_name', '') == 'time'
    satisfied |= getattr(var, 'axis', '') == 'T'
    satisfied |= units_convertible('seconds since 1900-01-01', getattr(var, 'units', ''))
    return satisfied
def is_time_variable ( varname , var ) : satisfied = varname . lower ( ) == 'time' satisfied |= getattr ( var , 'standard_name' , '' ) == 'time' satisfied |= getattr ( var , 'axis' , '' ) == 'T' satisfied |= units_convertible ( 'seconds since 1900-01-01' , getattr ( var , 'units' , '' ) ) return satisfied
Identifies if a variable is represents time