How to use the isodate.asString 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_times.py View on Github external
def evaluateObject(self,  subj_py):
        """Subject is  (empty string for standard formatting or) format string.
        Returns formatted."""
        if verbosity() > 80: progress("time:gmTime input:"+`subj_py`)
        format = subj_py
        if format =="" : format="%Y-%m-%dT%H:%M:%SZ"
        try:
            return time.strftime(format, time.gmtime(time.time()))
        except:
            return isodate.asString(time())
github linkeddata / swap / cwm_times.py View on Github external
def evaluateObject(self, subj_py):
        """Subject is format string or empty string for std formatting.
        Returns reformatted. @@@@ Ignores TZ"""
        if verbosity() > 80: progress("time:localTime input:"+`subj_py`)
        format = subj_py
        if format =="" : return   isodate.asString(time.time())
        return   time.strftime(format, time.localtime(time.time()))
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):
        """Subject is  (empty string for standard formatting or) format string.
        Returns formatted."""
        if verbosity() > 80: progress("time:gmTime input:"+`subj_py`)
        format = subj_py
        if format =="" : format="%Y-%m-%dT%H:%M:%SZ"
        try:
            return time.strftime(format, time.gmtime(time.time()))
        except:
            return isodate.asString(time())
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):
        """Subject is format string or empty string for std formatting.
        Returns reformatted. @@@@ Ignores TZ"""
        if verbosity() > 80: progress("time:localTime input:"+`subj_py`)
        format = subj_py
        if format =="" : return   isodate.asString(time.time())
        return   time.strftime(format, time.localtime(time.time()))
github linkeddata / swap / cwm_time.py View on Github external
def evaluateObject(self, subj_py):
        """Subject is format string or empty string for std formatting.
        Returns reformatted. @@@@ Ignores TZ"""
        if verbosity() > 80: progress("time:localTime input:"+`subj_py`)
        format = subj_py
        if format =="" : return   isodate.asString(time.time())
        return   time.strftime(format, time.localtime(time.time()))
github linkeddata / swap / cwm_times.py View on Github external
def evaluateObject(self,  subj_py):
        """Subject is  (empty string for standard formatting or) format string.
        Returns formatted."""
        if verbosity() > 80: progress("time:gmTime input:"+`subj_py`)
        format = subj_py
        if format =="" : format="%Y-%m-%dT%H:%M:%SZ"
        try:
            return time.strftime(format, time.gmtime(time.time()))
        except:
            return isodate.asString(time())
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):
        """Subject is format string or empty string for std formatting.
        Returns reformatted. @@@@ Ignores TZ"""
        if verbosity() > 80: progress("time:localTime input:"+`subj_py`)
        format = subj_py
        if format =="" : return   isodate.asString(time.time())
        return   time.strftime(format, time.localtime(time.time()))
github linkeddata / swap / cwm_time.py View on Github external
def evaluateObject(self,  subj_py):
        """Subject is  (empty string for standard formatting or) format string.
        Returns formatted."""
        if verbosity() > 80: progress("time:gmTime input:"+`subj_py`)
        format = subj_py
        if format =="" : format="%Y-%m-%dT%H:%M:%SZ"
        try:
            return time.strftime(format, time.gmtime(time.time()))
        except:
            return isodate.asString(time())