mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
The usual (and some new modules).
This commit is contained in:
parent
d57548023f
commit
a11ccccd24
17 changed files with 1011 additions and 285 deletions
|
@ -16,8 +16,11 @@ 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
|
||||
time.strftime(format, tt)
|
||||
format = ' %' + directive
|
||||
try:
|
||||
time.strftime(format, tt)
|
||||
except ValueError:
|
||||
print 'conversion specifier:', format, ' failed.'
|
||||
|
||||
time.timezone
|
||||
time.tzname
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue