datetime.datetime.combine()

classmethod datetime.combine(date, time)

Return a new datetime object whose date components are equal to the given date object’s, and whose time components and tzinfo attributes are equal to the given time object’s. For any datetime object d, d == datetime.combine(d.date(), d.timetz()). If date is a datetime object, its time components and tzinfo attributes are ignored.

doc_python
2016-10-07 17:30:46
Comments
Leave a Comment

Please login to continue.