2023年11月13日

localtime_r与gmtime_r

摘要: 简单说 gmtime_r转换与时区没关系,为UTC时间; localtime_r与时区相关,为本地时间。 好记性不如烂笔头,记录一下。 参考:https://www.python100.com/html/115143.html localtime_r函数的实现原理是基于时区的概念,它通过读取系统的时 阅读全文

posted @ 2023-11-13 14:04 orange-C 阅读(400) 评论(0) 推荐(0) 编辑