def check_time(self, dataset):
results = []<EOL>time_var = util.get_time_variable(dataset)<EOL>if not time_var:<EOL><INDENT>return Result(BaseCheck.HIGH, False, '<STR_LIT>', ['<STR_LIT>'])<EOL><DEDENT>required_ctx = TestCtx(BaseCheck.HIGH, '<STR_LIT>')<EOL>required_ctx.assert_true(getattr(dataset.variables[time_var], '<STR_LIT>', '<STR_LIT>') == '<STR_LIT:time>', '<STR_LIT>')<EOL>time_regex = r'<STR_LIT>'<EOL>time_units = getattr(dataset.variables[time_var], '<STR_LIT>', '<STR_LIT>')<EOL>required_ctx.assert_true(re.match(time_regex, time_units) is not None, '<STR_LIT>')<EOL>calendar = getattr(dataset.variables[time_var], '<STR_LIT>', '<STR_LIT>')<EOL>valid_calendars = [<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>'<EOL>]<EOL>if calendar:<EOL><INDENT>required_ctx.assert_true(calendar.lower() in valid_calendars, '<STR_LIT>'.format('<STR_LIT:U+002CU+0020>'.join(valid_calendars)))<EOL><DEDENT>results.append(required_ctx.to_result())<EOL>recommended_ctx = TestCtx(BaseCheck.MEDIUM, '<STR_LIT>')<EOL>recommended_ctx.assert_true(getattr(dataset.variables[time_var], '<STR_LIT>', '<STR_LIT>') != '<STR_LIT>', '<STR_LIT>')<EOL>if hasattr(dataset.variables[time_var], '<STR_LIT>'):<EOL><INDENT>recommended_ctx.assert_true(getattr(dataset.variables[time_var], '<STR_LIT>', '<STR_LIT>') != '<STR_LIT>', '<STR_LIT>')<EOL><DEDENT>results.append(recommended_ctx.to_result())<EOL>return results<EOL>
double time(time) ;//........................................ Depending on the precision used for the variable, the data type could be int or double instead of float.
    time:long_name = "" ; //..................................... RECOMMENDED - Provide a descriptive, long name for this variable.
    time:standard_name = "time" ; //............................. REQUIRED    - Do not change
    time:units = "seconds since 1970-01-01 00:00:00 0:00" ; //... REQUIRED    - Use approved CF convention with approved UDUNITS.
    time:calendar = "julian" ; //................................ REQUIRED    - IF the calendar is not default calendar, which is "gregorian".
    time:axis = "T" ; //......................................... REQUIRED    - Do not change.
    time:_FillValue = 0.0f;//.................................... REQUIRED  if there could be missing values in the data.
    time:ancillary_variables = "" ; //........................... RECOMMENDED - List other variables providing information about this variable.
    time:comment = "" ; //....................................... RECOMMENDED - Add useful, additional information here.