Source code for ultipa.utils.checkStrTime

# -*- coding: utf-8 -*-
import datetime

from dateutil.parser import parse


[docs] def is_valid_date(strdate): ''' Judge whether a string is a valid data or time. ''' try: dt = parse(strdate) except Exception as e: return False