get_datetime

Returns the current date and time.

The returned datetime object is offset-naive, adjusted to the local timezone.

Syntax

def get_datetime(self):

Returns

Returns the current date and time as a datetime object.

Raises