This is a preview version of the DisplayLink DL-7450 Software Development Kit Documentation. The functionality that is described and made available in this version is subject to addition, removal or change without warning.

class datetime – Information about a date and time

class datetime.datetime(year, month, day, hour=0, minute=0, second=0, microsecond=0, tzinfo=None, *, fold=0)

A datetime object is a single object containing all the information from a date object and a time object.

Other constructors:

classmethod fromisoformat()
classmethod fromordinal()
classmethod fromtimestamp()
classmethod now()

NOT IMPLEMENTED

classmethod combine()
classmethod strptime()

NOT IMPLEMENTED

Class attributes:

EPOCH

A datetime object representing the epoch.

Instance attributes:

year
month
day
hour
minute
second
microsecond
tzinfo
fold

Instance methods:

replace()
tuple()
time()
astimezone()
date()
dst()
isoformat()
isoweekday()

Return the day of the week as an integer, where Monday is 1 and Sunday is 7.

weekday()

Return the day of the week as an integer, where Monday is 0 and Sunday is 6.

timetuple()
timetz()
toordinal()
tzname()
utcoffset()