pyguymer3.now

pyguymer3.now()[source]

Get the current date and time as a timezone-aware datetime object.

This function aims to mimic datetime.datetime.now() but instead it returns a timezone-aware datetime object.

Returns:

ans – the timezone-aware datetime object

Return type:

datetime.datetime

Notes

Copyright 2017 Thomas Guymer [1]

References