将TAI64(N)字符串转换为DateTime.DateTime(UTC)对象。

tai64n的Python项目详细描述


将十六进制编码的TAI64N字符串转换为DateTime.DateTime对象和 在TAI和UTC标准时间之间转换。

TAI,TAI64,TAI64N

TAI stands for Temps Atomique International, the current international real-time standard. One TAI second is defined as the duration of 9192631770 periods of the radiation corresponding to the transition between the two hyperfine levels of the ground state of the cesium atom.

http://cr.yp.to/libtai/tai64.html#tai64n

模块功能

decode_tai64n("400000004a3239350292c294")
将16或24字节长的十六进制TAI64(n)字符串转换为datetime.datetime UTC对象
utc2tai(datetime.datetime.now())
将datetime.datetime UTC对象转换为datetime.datetime TAI对象

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
JAVAutil。整数java的扫描器键盘输入   java通知运行后立即崩溃   java如何在一个只能由类修改而不能由其实例修改的类中生成静态变量?   数据库Java字段猜测   返回值周围的java括号为什么?   java Android更新通讯录中的联系人   一个消费者正在读取数据   java是否可以通过编程方式为蓝牙配对设置pin?   java Spring引导和buildResponseEntity()   java为什么序列化可以在没有实现可序列化的情况下工作   Java同步无助于相互排斥   twitter Java Twitter4J未在推文下显示源标签   为什么Javasocket不支持中断处理?