woom.util.WoomDate.combine#
- classmethod WoomDate.combine(date, time)#
Combine a date and time into a single Timestamp object.
This method takes a date object and a time object and combines them into a single Timestamp that has the same date and time fields.
- Parameters:
date (datetime.date) – The date part of the Timestamp.
time (datetime.time) – The time part of the Timestamp.
- Returns:
A new Timestamp object representing the combined date and time.
- Return type:
Timestamp
See also
TimestampRepresents a single timestamp, similar to datetime.
to_datetimeConverts various types of data to datetime.
Examples
>>> from datetime import date, time >>> pd.Timestamp.combine(date(2020, 3, 14), time(15, 30, 15)) Timestamp('2020-03-14 15:30:15')