Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

Python program to display the current date and time


import datetime
now = datetime.datetime.now()
print ("Current date and time : ")
print (now.strftime("%Y-%m-%d %H:%M:%S"))				 
	
Comment

PREVIOUS NEXT
Code Example
Python :: how to check datatype of column in dataframe python 
Python :: pandas - from umeric to string 
Python :: Calculate median with pyspark 
Python :: get date and time in python 
Python :: distance formula in python 
Python :: random date python 
Python :: how to check for a particular word in a text file using python 
Python :: pandas empty dataframe with column names 
Python :: json file to dict python 
Python :: python replace space with underscore 
Python :: print json python 
Python :: numpy read image 
Python :: import status in django rest framework 
Python :: save and load a dictionary python 
Python :: Counter to df pandas 
Python :: join list with comma python 
Python :: write a python program to read last n lines of a file 
Python :: import sklearn linear regression 
Python :: check if string url python 
Python :: django create app command 
Python :: python datetime now only hour and minute 
Python :: pandas columns starting with 
Python :: bgr2gray opencv 
Python :: df.drop index 
Python :: extract ints from strings in Pandas 
Python :: python write array to file 
Python :: how to add static files in django 
Python :: python print colored text 
Python :: python float till 2 decimal places 
Python :: matplotlib show imaginary numbers 
ADD CONTENT
Topic
Content
Source link
Name
3+1 =