Play with the Current time using Python's now function

Publicado em: 30 Maio 2018
no canal de: technologyCult
249
4

Play with the Current time using Python's now function

Explore / Play with the Current time using Python's now function.

Session 72

#technologycult #python

Topic to be covered - Explore and Play with Current Date and Time

Code Starts Here
==============

from datetime import datetime

current = datetime.now()

Print Current year
print(current.year)

Print Current month
print(current.month)

Print Current Day
print(current.day)

Print Current hour
print(current.hour)

Print Current minute
print(current.minute)

Print Current second
print(current.second)

Print Current microsecond
print(current.microsecond)

Difference between 2 dates

diff = datetime(2018,5,1) - datetime(2018,3,1)
print(diff)

All Playlist of this youtube channel
====================================

1. Data Preprocessing in Machine Learning
   • Data Preprocessing in Machine Learning| Li...  

2. Confusion Matrix in Machine Learning, ML, AI
   • Confusion Matrix in Machine Learning, ML, AI  

3. Anaconda, Python Installation, Spyder, Jupyter Notebook, PyCharm, Graphviz
   • Anaconda | Python Installation | Spyder | ...  

4. Cross Validation, Sampling, train test split in Machine Learning
   • Cross Validation | Sampling | train test s...  

5. Drop and Delete Operations in Python Pandas
   • Drop and Delete Operations in Python Pandas  

6. Matrices and Vectors with python
   • Matrices and Vectors with python  

7. Detect Outliers in Machine Learning
   • Detect Outliers in Machine Learning  

8. TimeSeries preprocessing in Machine Learning
   • TimeSeries preprocessing in Machine Learning  

9. Handling Missing Values in Machine Learning
   • Handling Missing Values in Machine Learning  

10. Dummy Encoding Encoding in Machine Learning
   • Label Encoding, One hot Encoding, Dummy En...  

11. Data Visualisation with Python, Seaborn, Matplotlib
   • Data Visualisation with Python, Matplotlib...  

12. Feature Scaling in Machine Learning
   • Feature Scaling in Machine Learning  

13. Python 3 basics for Beginner
   • Python | Python 3 Basics | Python for Begi...  

14. Statistics with Python
   • Statistics with Python  

15. Sklearn Scikit Learn Machine Learning
   • Sklearn Scikit Learn Machine Learning  

16. Python Pandas Dataframe Operations
   • Python Pandas Dataframe Operations  

17. Linear Regression, Supervised Machine Learning
   • Linear Regression | Supervised Machine Lea...  

18 Interiew Questions on Machine Learning and Data Science
   • Interview Question for Machine Learning, D...  

19. Jupyter Notebook Operations
   • Jupyter and Spyder Notebook Operations in ...  


Nesta página do site você pode assistir ao vídeo on-line Play with the Current time using Python's now function duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário technologyCult 30 Maio 2018, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 249 vezes e gostou 4 espectadores. Boa visualização!