The imports of the datetime module are all over the place. We currently have at least the following styles in our lib:
import datetime
import datetime as dtm
from datetime import datetime, timedelta
Let's unify that to import datetime as dtm. I prefer this option since
- Since there is
datetime.datetime, a standalone datetime can be confusing. Using the toplevel module is preferable IMO.
dtm is shorter that datetime, plus it make dtm.datetime unambiguous`
The imports of the
datetimemodule are all over the place. We currently have at least the following styles in our lib:import datetimeimport datetime as dtmfrom datetime import datetime, timedeltaLet's unify that to
import datetime as dtm. I prefer this option sincedatetime.datetime, a standalonedatetimecan be confusing. Using the toplevel module is preferable IMO.dtmis shorter thatdatetime, plus it makedtm.datetimeunambiguous`