Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python datetime subtract seconds

import datetime

X = 65
result = datetime.datetime.now() - datetime.timedelta(seconds=X)
Comment

PREVIOUS NEXT
Code Example
Python :: pandas groupby get all but first row 
Python :: loop through 2 dataframes at once 
Python :: delete space in string python 
Python :: random oversampling python 
Python :: plt plot grid on 
Python :: codeforces 677a python solution 
Python :: bs4 table examples python 
Python :: python pandas replace nan with null 
Python :: getting image from path python 
Python :: linux command on python 
Python :: how to insert a variable into a string without breaking up the string in python 
Python :: python ls 
Python :: max of a dict 
Python :: plot python x axis range 
Python :: python list subdirectories 
Python :: what is the purpose of the judiciary 
Python :: tkinter entry read only 
Python :: TypeError: sequence item 0: expected str instance, int found 
Python :: how to print a float with only 2 digits after decimal in python 
Python :: location of python in cmd 
Python :: get rid of n in string python 
Python :: get request header flask 
Python :: how to print all combinations of a string in python 
Python :: torchviz 
Python :: pandas add rows from df to another 
Python :: createview django 
Python :: natsort python pip install 
Python :: python convert remove spaces from beginning of string 
Python :: how to import data from csv to jupyter notebook 
Python :: pillow read from ndarray 
ADD CONTENT
Topic
Content
Source link
Name
7+3 =