Python Forum
How to compare timestamps in python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to compare timestamps in python
#2
I would just make a simple regex to get potential time stamps, and then check them by trying to convert them to datetime objects from the datetime module. Then you can compare the difference of the datetime objects with a timedelta object.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
How to compare timestamps in python - by asad - Oct-23-2018, 03:34 PM
RE: How to compare timestamps in python - by ichabod801 - Oct-23-2018, 04:20 PM
RE: How to compare timestamps in python - by asad - Oct-24-2018, 03:56 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to find tags using specific text (timestamps) in a url? q988988 1 1,414 Mar-08-2022, 08:09 AM
Last Post: buran
  Compare two Excel sheets with Python and list diffenrences dmkfon 1 14,792 Oct-09-2021, 03:30 PM
Last Post: Larz60+
  Speech Recognition with timestamps DeanAseraf1 3 6,704 Jun-27-2021, 06:58 PM
Last Post: gh_ad
Bug Help on Flagging Timestamps Daring_T 2 1,933 Oct-28-2020, 08:11 PM
Last Post: Daring_T
  how to compare two different size images in python and find corresponding pixel value squidsirymchenry 1 4,647 Feb-03-2020, 06:48 AM
Last Post: michael1789
  How to compare in python an input value with an hashed value in mysql table? Formationgrowthhacking 4 3,414 Jan-14-2020, 11:43 AM
Last Post: Formationgrowthhacking
  Compare two images with Python is possible? Delemir78 3 4,884 Dec-17-2019, 09:03 PM
Last Post: Larz60+
  How can I compare Python XML-Files and add missing values from one to another kirat 2 2,770 Aug-30-2019, 12:17 PM
Last Post: perfringo
  Python csv compare two file, update value if two value is matched kinojom 1 2,582 Apr-17-2019, 10:36 AM
Last Post: DeaD_EyE
  Compare words Python xSphere 3 2,651 Jan-24-2019, 10:52 AM
Last Post: perfringo

Forum Jump:

User Panel Messages

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