datetime.date()¶а как быстро произвести обратную операцию (минимум операций)?
Return date object with same year, month and day.
datetime.time()¶
Return time object with same hour, minute, second and microsecond. tzinfo is None. See also method timetz().