-
Notifications
You must be signed in to change notification settings - Fork 20
Create date_and_time.md #17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
snippets/python/date_and_time.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use f strings to make it more pythonic
you can use this
print(f"Date: {cur_time.day} / {cur_time.month} / {cur_time.year}")
snippets/python/date_and_time.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use f-strings here as well
Done! Thanks for letting me know this, did not know about is earlier!
Done! Thanks for letting me know this, did not know about is earlier!
No problem.
Nice job with the snippet 👍🏽
Description
Created snippet to show current date and time in python and explained as well.
A short summary of what is included in your Pull Request.
Fixes #16
Type of change
Choose one or more options from the following as per the nature of your Pull request.
NOTE: These boxes can be checked using
[X]
Bug fix (non-breaking change which fixes an issue)
New feature (non-breaking change which adds functionality)
Documentation Update
Checklist:
Please tick all the boxes that are fulfilled by your Pull Request.
Update index.md
)