How to use the isodate.parse function in isodate

To help you get started, we’ve selected a few isodate examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github STEllAR-GROUP / hpx / misc / px_dag / external / cwm-1.2.1 / swap / cwm_time.py View on Github external
def evaluate(self, subj_py, obj_py):
        try:
            return isodate.parse(subj_py) == isodate.parse(obj_py)
        except ValueError:
            return None
github linkeddata / swap / cwm_times.py View on Github external
def evaluateObject(self, subj_py):
        try:
            return str(isodate.parse(subj_py))
        except:
            return None
github STEllAR-GROUP / hpx / misc / px_dag / external / cwm-1.2.1 / swap / cwm_time.py View on Github external
def evaluateObject(self,  subj_py):
        weekdayZero = time.gmtime(0)[6]
        return (weekdayZero + int(isodate.parse(subj_py)/DAY)) % 7 
github STEllAR-GROUP / hpx / misc / px_dag / external / cwm-1.2.1 / swap / cwm_time.py View on Github external
def evaluateObject(self, subj_py):
        try:
            return float(isodate.parse(subj_py))
        except ValueError, AssertionError:
            progress("Warning: Failed to parse time string '%s'" % subj_py)
            return None
github linkeddata / swap / cwm_time.py View on Github external
def evaluateObject(self, subj_py):
        try:
            return float(isodate.parse(subj_py))
        except ValueError, AssertionError:
            progress("Warning: Failed to parse time string '%s'" % subj_py)
            return None
github linkeddata / swap / cwm_time.py View on Github external
def evaluate(self, subj_py, obj_py):
        try:
            return isodate.parse(subj_py) == isodate.parse(obj_py)
        except ValueError:
            return None
github STEllAR-GROUP / hpx / misc / px_dag / external / cwm-1.2.1 / swap / cwm_times.py View on Github external
def evaluateObject(self,  subj_py):
        weekdayZero = time.gmtime(0)[6]
        return str((weekdayZero + int(isodate.parse(subj_py)/DAY)) % 7 )
github linkeddata / swap / cwm_times.py View on Github external
def evaluate(self, subj_py, obj_py):
        try:
            return isodate.parse(subj_py) == isodate.parse(obj_py)
        except:
            return None