Python Forum
How to calculate time in seconds
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to calculate time in seconds
#1
Hi,
I have time as below:


t1: 2020-02-13T11:16:30-05:00
t2: 2020-03-13T11:01:56-31:00
t3: 2020-03-13T11:02:42-00:00
I want to calculate time difference between t1-t2, t2-t3 in seconds.
Reply
#2
suggest viewing: https://pymotw.com/3/datetime/
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Problem with module time and leap seconds Pedroski55 3 1,189 Oct-07-2022, 11:27 PM
Last Post: Pedroski55
  Store variable data and display sum after 60 seconds the_dude 11 3,366 Dec-16-2021, 07:07 PM
Last Post: deanhystad
  How to calculate time difference between each row of dataframe in seconds Mekala 1 2,514 Jul-16-2020, 12:57 PM
Last Post: Larz60+
  Writing a function to calculate time range in Unix Epoch Time t4keheart 2 2,930 Jul-15-2020, 01:55 AM
Last Post: t4keheart
  Need to add hours min and seconds tester_V 5 3,029 Jun-02-2020, 05:29 PM
Last Post: tester_V
  Can't substract seconds from time Raj_Kumar 1 1,764 Apr-15-2020, 02:47 AM
Last Post: bowlofred
  how to stop and start a script for 30 seconds laspaul 9 7,512 Jan-16-2020, 02:13 PM
Last Post: laspaul
  Convert HH:MM:SS to seconds RavCOder 4 9,829 Nov-26-2019, 03:46 PM
Last Post: DeaD_EyE
  pyjama - frame every x seconds? MuntyScruntfundle 2 2,420 Jan-18-2019, 05:18 PM
Last Post: MuntyScruntfundle
  Conversion of Time Duration in seconds in python jdevansh99 0 2,828 Jun-05-2018, 05:12 PM
Last Post: jdevansh99

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020