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()))
Exemple #2
0
 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()))
 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())
Exemple #4
0
 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())