Lecture Note
University
American Baptist CollegeCourse
CSCI 1534 | Data Analysis and VisualizationPages
1
Academic year
2023
Muthia Marhamah
Views
0
p {margin: 0; padding: 0;} .ft00{font-size:18px;font-family:NimbusRomanRegular;color:#000000;} .ft01{font-size:18px;font-family:NimbusRomanBold;color:#000000;} .ft02{font-size:18px;line-height:21px;font-family:NimbusRomanRegular;color:#000000;} Operation Using Modules and Tools Datetime Module Python datetime module supplies classes to work with date and time. Theses classes provide a number of functions to deal with dates, times and time interval. Date and datetime are an object in python, so when you manipulate them, you are actually manipulating objecst and not string or timestamps. Create a datetime: To put hour, minute , seconds, you can add more code like this: datetime (year, month, date, hour, minute, second) List of class method for date time: Attribute Name Description Min The minimum representable DateTime Max Represent minimum of DateTime Resolution Represent minimum possible differencebetween DateTime objects. Year Represent range of year between MINYEARand MAXYEAR Month Represent range of month between 1-12 Day The range of days must be between 1 andthe number of the days in the given monthof the given year.
Datetime Module
Please or to post comments