Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Unifiy datetime import #4577

Copy link
Copy link
@Bibo-Joshi

Description

@Bibo-Joshi
Issue body actions

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

  1. Since there is datetime.datetime, a standalone datetime can be confusing. Using the toplevel module is preferable IMO.
  2. dtm is shorter that datetime, plus it make dtm.datetime unambiguous`

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.