The usual (and some new modules).

This commit is contained in:
Guido van Rossum 1997-10-06 20:19:59 +00:00
parent d57548023f
commit a11ccccd24
17 changed files with 1011 additions and 285 deletions

View file

@ -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