⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test_tim.py

📁 minimal python variant for small footprint apps like embedded apps
💻 PY
字号:
import timetime.altzonetime.clock()t = time.time()time.asctime(time.gmtime(t))if time.ctime(t) <> time.asctime(time.localtime(t)):    print 'time.ctime(t) <> time.asctime(time.localtime(t))'time.daylightif long(time.mktime(time.localtime(t))) <> long(t):    print 'time.mktime(time.localtime(t)) <> t'time.sleep(1.2)tt = time.gmtime(t)for directive in ('a', 'A', 'b', 'B', 'c', 'd', 'H', 'I',                  'j', 'm', 'M', 'p', 'S',                  'U', 'w', 'W', 'x', 'X', 'y', 'Y', 'Z', '%'):    format = ' %' + directive    try:        time.strftime(format, tt)    except ValueError:        print 'conversion specifier:', format, ' failed.'time.timezonetime.tzname# expected errorstry:    time.asctime(0)except TypeError:    passtry:    time.mktime((999999, 999999, 999999, 999999,                 999999, 999999, 999999, 999999,                 999999))except OverflowError:    pass

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -