Say I have two datetime (or timestamp) variables and I am trying to get the difference between them. I can do: This results in a timedelta object ( ...
Say I have two datetime (or timestamp) variables and I am trying to get the difference between them. I can do: This results in a timedelta object ( ...
I'm facing a python timezones problem and am unsure of what is the right approach to deal with it. I have to calculate timedeltas from given start and ...
I have a csv with a column that represents time durations of two discrete events. I want to split that duration into two distinct columns and consi ...
I'm extract the execution time of a Linux process using Subprocess and ps. I'd like to put it in a datetime object, to perform datetime arithmetic. Ho ...
I have data that contains id, gender, price, time to pay. For example: Time to pay, is the time difference between when the customer orders and pay ...
I am working on a project for organizing a freezer. Therefore I added a model called 'ShoppingItem'. It has an 'best before' date. Now I want to check ...
I have two dates in timestamp and their difference is dt is: (1669983551.287477-1669983551.280526) I want to generate several dates (in datetime) ...
Every time I use this for the below problem I get: 'TimedeltaProperties' object has no attribute 'strftime' Start_Date End_D ...
I have a pandas._libs.tslibs.timestamps.Timestamp object, e.g., 2016-01-01 07:00:04.85+00:00 and I want to create an int object that stores the number ...
Exist an easier way to do this kind of parse date? I'm trying to make a filter in pandas to localize dates 3 months ago and loc the entire month too. ...
i´m having a problem with a code. I need to subtract a day in a datetime.now to webscrapping a workbook from the Anbima site (a brazilian financial da ...
Here is the script: I need the result to be an int because the program requires the date in int. ...
I have a dataframe df: I want a function that obtains the indices that: Are NOT within a specific time (e.g., 5 minutes) of each other. For examp ...
Let's suppose we have a pandas dataframe with work shifts: Worker Shift_start Shift_end Position Role ...
I want to know if there's a daylight saving time change within the next hours. Thereby I recognized an unexpected dependency between datetime.timedelt ...
i'm creating a game where a guy named bigman does platformer protagonist things, and tired to add framerate independence, but the issue is that bigman ...
I have a DataFrame in which I have multiple names and multiple timestamps associated with them. This is the data of players who have played a game in ...
I have a df ,you can have it by copy and run the following code: My question is ,how can I convert the time duration from '28 days 21:05:16.141263' ...
when i was tring to get data a sql table to dataframe using variables from columns of other dataframe it came like this i want it only the time 08:3 ...
I need to find the numbers of days left from today till the end of the year. I know I can calculate this by simply subtracting today's date from the D ...