operating system services the following class attributes describe the range of allowed dates and resolutiondatetime min earliest representable date and time (datetime datetime( , , , , )datetime max latest representable date and time (datetime datetime( , , , , , , )datetime resolution smallest resolvable difference between non-equal datetime objects (datetime timedelta( , , )an instancedof datetime object has the same methods as date and time objects combined in additionalthe following methods are availabled astimezone(tzreturns new datetime object but in different time zonetz the members of the new object will be adjusted to represent the same utc time but in the time zone tz date(returns date object with the same date replace([year [month [day [hour [minute [second [microsecond [tzinfo]]]]]]]returns new datetime object with one or more of the listed parameters replaced by new values use keyword arguments to replace an individual value time(returns time object with the same time the resulting time object has no time zone information set timetz(returns time object with the same time and time zone information utctimetuple(returns time struct_time object containing date and time information normalized to utc time timedelta objects timedelta objects represent the difference between two dates or times these objects are normally created as the result of computing difference between two datetime instances using the operator howeverthey can be manually constructed using the following classtimedelta([days [seconds [microseconds [milliseconds [minutes [hours [weeks ]]]]]]]creates timedelta object that represents the difference between two dates and times the only significant parameters are dayssecondsand microsecondswhich are used internally to represent difference the other parametersif suppliedare converted into dayssecondsand microseconds the attributes dayssecondsand microseconds of the returned timedelta object contain these values lib fl ff