Advertisement
rfmonk

datetime_time.py

Jan 17th, 2014
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. #!/usr/bin/env python
  2.  
  3.  
  4. import datetime
  5.  
  6. t = datetime.time(1, 2, 3)
  7. print t
  8. print 'hour       :', t.hour
  9. print 'minute     :', t.minute
  10. print 'second     :', t.second
  11. print 'microsecond:', t.microsecond
  12. print 'tzinfo     :', t.tzinfo
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement