Python time altzone()方法

Python 教程 · 2019-02-03 10:43:46

描述

Python time altzone() 函数返回格林威治西部的夏令时地区的偏移秒数。如果该地区在格林威治东部会返回负值(如西欧,包括英国)。对夏令时启用地区才能使用。

语法

altzone()方法语法:

time.altzone

参数

  • NA。

返回值

返回格林威治西部的夏令时地区的偏移秒数。如果该地区在格林威治东部会返回负值(如西欧,包括英国)。

实例

以下实例展示了 altzone()函数的使用方法:

#!/usr/bin/python
import time

print "time.altzone %d " % time.altzone

以上实例输出结果为:

time.altzone() 25200

点击查看所有 Python 教程 文章: https://codercto.com/courses/l/8.html

查看所有标签

The Algorithm Design Manual

The Algorithm Design Manual

Steve S. Skiena / Springer / 1998-8-1 / GBP 53.91

Contents u Techniques u Introduction to Algorithms u Correctness and Efficiency u Correctness u Efficiency u Expressing Algorithms u Keeping Score u The RAM Model of Computatio......一起来看看 《The Algorithm Design Manual》 这本书的介绍吧!

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具