Page 150 - Programming With Python 3
P. 150
An Introduction to STEM Programming with Python — 2019-09-03a Page 137
Chapter 11 — Date and Time
5| pearlharbor = "1941-12-07 07:55 -1000"
6| dlii = datetime.datetime.strptime(pearlharbor,"%Y-%m-%d %H:%M
Free
%z")
7| print(dlii)
8|
9| here = datetime.datetime.now(myTimeZone())
10|
11| ago = here - dlii
eBook
12|
13| print(ago)
Edition
Summary
Goes here
Important Terms
Please support this work at
•
Coordinated Universal
datetime
Time • • ISO • • aware
Longitude
•
Time Zone
naive
• GMT http://syw2l.org
•
• Greenwich Mean Time • UCT • strptine
• HH:MM:SS • YY-MM-DD • timedelta
Free
Exercises
Here
eBook
Word Search
Edition
Copyright 2019 — James M. Reneau Ph.D. — http://www.syw2l.org — This work is licensed
under a Creative Commons Attribution-ShareAlike 4.0 International License.

