def convert(timeString):
if timeString == 'now':
return now()
_sets = timeString.split(':')
if len(_sets) != 7:
return CF.UTCTime(0,0,0)
_year, _month, _day, _blank, _hours, _minutes, _seconds = timeString.split(':')
_full_seconds = float(_seconds)
_time = time.mktime((int(_year),int(_month),int(_day),int(_hours),int(_minutes),int(_full_seconds),0,0,0))-time.timezone
return CF.UTCTime(1, _time, _full_seconds - int(_full_seconds))
# Break out the whole seconds into a GMT time
# Insert the arithmetic functions as operators on the PrecisionUTCTime class
评论列表
文章目录