How to get current DATE & TIME in Python | datetime module | 2021

preview_player
Показать описание
In this video, I've shown you the simple process by which you could get the current DATE and TIME of your timezone. However by passing in the argument inside the timezone parameter, you could fetch the date and time of other timezones as well. The time we get as output is in 24 hour-clock format but we could change that into 12 hour-clock format easily by formatting the time. With some workout, you could do a lot of other cool stuff with the datetime module as well.

Code (only three lines) :-

import datetime
print(currentTime)

Thank you for watching this video!
Drop a like if you found it useful.
Comment down below if you have any queries and I’ll definitely reach out to you!
Рекомендации по теме
Комментарии
Автор

Try making a video on basics of CSS
Will mean a lot to me 🙏🏻
+ Interesting features VS Code

vaibhavanand
Автор

Visiting your channel after so long... Where did your old video go? 🤔🤔

aarnavarya
welcome to shbcf.ru