python tm_isdst = -1, 0, 1 datetime module

Python 里的tm_isdst

DST 是daylight saving time, 意思是:夏令时

在python的time, datetime模块下,按照struct_time格式输出时间,最后的一个tm_isdst的值就是告知是否为夏令时。

tm_isdst = 1 的时候表示时间是夏令时,

    值为0的时候表示非夏令时

    值为-1的时候表示时间不确定是否是夏令时

上一篇:JDBC预编译statement(preparedstatement)和statement的比较、execute与executeUpdate的区别


下一篇:(转载)IOS中UIScrollView的属性和委托方法