Top "Timedelta" questions

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

How to add delta to python datetime.time?

From: http://docs.python.org/py3k/library/datetime.html#timedelta-objects A timedelta object represents a duration, the difference between …

python datetime time timedelta
How to construct a timedelta object from a simple string

I'm writing a function that needs a timedelta input to be passed in as a string. The user must enter …

python datetime timedelta
How can I make a python numpy arange of datetime

I have some input data, with timestamps in the input file in the form of hours from the date time …

python datetime numpy timedelta
What is the difference between "datetime.timedelta" and "dateutil.relativedelta.relativedelta" when working only with days?

What is the difference between datetime.timedelta (from Python's standard library) and dateutil.relativedelta.relativedelta when working only with days? …

python datetime timedelta
Python - Date & Time Comparison using timestamps, timedelta

I've spent the past hour digging around the Python docs and many SO questions; please forgive me for being another …

python timedelta
Convert timedelta to floating-point

I got a timedelta object from the subtraction of two datetimes. I need this value as floating point for further …

python datetime python-2.7 floating-point timedelta
Python: get datetime for '3 years ago today'

In Python, how do I get a datetime object for '3 years ago today'? UPDATE: FWIW, I don't care hugely …

python datetime timedelta
Python: Difference of 2 datetimes in months

Possible Duplicate: Best way to find the months between two dates (in python) I would like to know how I …

python date datediff timedelta
Determining "days" in python when the timedelta.days is less than one

sorry in advance if this is dense. I am trying to find the days since I last posted a tweet. …

python date datetime timedelta
how set column as date index?

My data sets looks like: Date Value 1/1/1988 0.62 1/2/1988 0.64 1/3/1988 0.65 1/4/1988 0.66 1/5/1988 0.67 1/6/1988 0.66 1/7/1988 0.64 1/8/1988 0.66 1/9/1988 0.65 1/10/1988 0.65 1/11/1988 0.64 1/12/1988 0.66 1/13/1988 0.67 1/14/1988 0.66 1/15/1988 0.65 1/16/1988 0.64 1/17/1988 0.62 1/18/1988 0.64 1/19/1988 0.62 1/20/1988 0.62 1/21/1988 0.64 1/22/1988 0.62 1/23/1988 0.60 I used this code to read this data df.set_index(df['Date'], …

pandas dataframe timedelta