Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upHighlight improvement about `%d` in the datetime format #122
Comments
|
As has been mentioned in similar issues already, it is not possible to always correctly infer that a particular string is a "datetime format" string. E.g.: dt_format = 'The date is: %Y%m%d'
# format output
dt_out = datetime.strftime(datetime.now(), dt_format)
# parse input
my_datetime = datetime.strptime('The date is: 20180719', dt_format)If the code is yours, you can choose to use Additionally, the issue #106 has a proposal that would allow configuring the color scheme to hide |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When
%dis part ofdatetimeformat string, i think it should not be highlighted.