Top "Timedelta" questions

Timedelta refers to the difference between two timestamps, which is a measure of elapsed time.

Calculating the difference between two Java date instances

I'm using Java's java.util.Date class in Scala and want to compare a Date object and the current time. …

java date time timedelta java.util.date
Adding days to a date in Python

I have a date "10/10/11(m-d-y)" and I want to add 5 days to it using a Python script. Please consider a …

python date datetime timedelta
Convert a timedelta to days, hours and minutes

I've got a timedelta. I want the days, hours and minutes from that - either as a tuple or a …

python timedelta
Format timedelta to string

I'm having trouble formatting a datetime.timedelta object. Here's what I'm trying to do: I have a list of objects …

python string datetime format timedelta
Understanding timedelta

Given the python code below, please help me understand what is happening there. start_time = time.time() time.sleep(42) end_…

python timedelta
Python: Convert timedelta to int in a dataframe

I would like to create a column in a pandas data frame that is an integer representation of the number …

python pandas timedelta
How to compare times in Python?

I see that date comparisons can be done and there's also datetime.timedelta(), but I'm struggling to find out how …

python datetime time comparison timedelta
Python timedelta in years

I need to check if some number of years have been since some date. Currently I've got timedelta from datetime …

python datetime timedelta
Comparing a time delta in python

I have a variable which is <type 'datetime.timedelta'> and I would like to compare it against certain …

python datetime timedelta
converting string 'yyyy-mm-dd' into datetime python

I have a raw input from the user such as "2015-01-30"...for the query I am using, the date …

python datetime timedelta