-
Book Overview & Buying
-
Table Of Contents
Machine Learning For Dummies
By :
Dates and times are items that most people work with quite a bit. Society bases almost everything on the date and time that a task needs to be or was completed. We make appointments and plan events for specific dates and times. Most of our day revolves around the clock. Because of the time-oriented nature of humans, it’s a good idea to look at how Python deals with interacting with date and time (especially storing these values for later use). As with everything else, computers understand only numbers — dates and times don’t really exist.
To work with dates and times, you must issue a special import datetime command. Technically, this act is called importing a module (see the “Storing Code in Modules” section, later in the chapter, for details). Don’t worry about how the command works right now — just use it whenever you want to do something with a date and time.
Computers do have clocks inside them, but the clocks...
Change the font size
Change margin width
Change background colour