is_time#
- sunpy.time.is_time(time_string, time_format=None)[source]#
Returns true if the input is a valid date/time representation.
- Parameters:
- Returns:
bool
–True
if can be parsed bysunpy.time.parse_time
.
Examples
>>> import sunpy.time >>> sunpy.time.is_time('2012/08/01') True