swatch.py 文件源码

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

项目:pinhook-tilde 作者: archangelic 项目源码 文件源码
def beats():
    '''Swatch beats'''

    t = time.gmtime()
    h, m, s = t.tm_hour, t.tm_min, t.tm_sec

    utc = 3600 * h + 60 * m + s  # UTC

    bmt = utc + 3600  # Biel Mean Time (BMT)

    beat = bmt / 86.4

    if beat > 1000:
        beat -= 1000

    return beat
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号