carbonblack.py 文件源码

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

项目:pyefflux 作者: effluxsystems 项目源码 文件源码
def _convert_windows_times(self, t):
        try:
            microsec = t / 10
            sec, microsec = divmod(microsec, 1000000)
            days, sec = divmod(sec, 86400)
            dt = (
                datetime.datetime(
                    1601,
                    1,
                    1) +
                datetime.timedelta(
                    days,
                    sec,
                    microsec))
            return calendar.timegm(dt.timetuple()), dt.isoformat() + 'Z'
        except(Exception):
            return 0, ''
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号