[code.view]

[top] / python / PyMOTW / time / time_struct.py

     #!/usr/bin/env python
     # encoding: utf-8
     #
     # Copyright (c) 2008 Doug Hellmann All rights reserved.
     #
     """
     """
     #end_pymotw_header
     
     import time
     
     print 'gmtime   :', time.gmtime()
     print 'localtime:', time.localtime()
     print 'mktime   :', time.mktime(time.localtime())
     
     print
     t = time.localtime()
     print 'Day of month:', t.tm_mday
     print ' Day of week:', t.tm_wday
     print ' Day of year:', t.tm_yday

[top] / python / PyMOTW / time / time_struct.py

contact | logmethods.com