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
- An
Exceptionis raised if there is an error retrieving the date and time.