hvutil.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:jiveplot 作者: haavee 项目源码 文件源码
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"]
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号