def secondsInDayToTime(sssod):
# 3600 seconds per hour
(h, s) = divmod(sssod, 3600)
(m, s) = divmod(s, 60)
(fs, s) = math.modf( s )
return datetime.time(int(h), int(m), int(s), int(fs*1.0e6))
## Generalized version of 'quote_split' as found in command.py
## This one defaults to "'" for opening and "'" for closing quotes
## but these characters can be overridden
##
## quote_split do not extract _words_ but split the
## string at the indicated character,
## provided the character is not inside
## quotes
##
## "aap 'noot 1; mies 2'; foo bar"
## results in:
## ["aap 'noot 1;mies 2'", "foo bar"]
评论列表
文章目录