Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Convert HH:MM:SS to seconds
#5
(Nov-26-2019, 01:17 PM)RavCOder Wrote: Hi,
it works,but the map () method is used for iterators, while here I have a string, how can that work (sorry for the stupid question, but it was to understand).

The method str.split returns a list, which is a sequence, which is iterable.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply


Messages In This Thread
Convert HH:MM:SS to seconds - by RavCOder - Nov-26-2019, 12:49 PM
RE: Convert HH:MM:SS to seconds - by DeaD_EyE - Nov-26-2019, 01:05 PM
RE: Convert HH:MM:SS to seconds - by RavCOder - Nov-26-2019, 01:17 PM
RE: Convert HH:MM:SS to seconds - by DeaD_EyE - Nov-26-2019, 03:46 PM
RE: Convert HH:MM:SS to seconds - by ThomasL - Nov-26-2019, 01:23 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Problem with module time and leap seconds Pedroski55 3 2,101 Oct-07-2022, 11:27 PM
Last Post: Pedroski55
  Store variable data and display sum after 60 seconds the_dude 11 5,632 Dec-16-2021, 07:07 PM
Last Post: deanhystad
  How to calculate time difference between each row of dataframe in seconds Mekala 1 3,647 Jul-16-2020, 12:57 PM
Last Post: Larz60+
  Need to add hours min and seconds tester_V 5 4,292 Jun-02-2020, 05:29 PM
Last Post: tester_V
  Can't substract seconds from time Raj_Kumar 1 2,455 Apr-15-2020, 02:47 AM
Last Post: bowlofred
  How to calculate time in seconds rajeshE 1 2,789 Feb-15-2020, 11:07 PM
Last Post: Larz60+
  how to stop and start a script for 30 seconds laspaul 9 11,565 Jan-16-2020, 02:13 PM
Last Post: laspaul
  pyjama - frame every x seconds? MuntyScruntfundle 2 3,139 Jan-18-2019, 05:18 PM
Last Post: MuntyScruntfundle
  Conversion of Time Duration in seconds in python jdevansh99 0 3,367 Jun-05-2018, 05:12 PM
Last Post: jdevansh99
  starting a process every 10 seconds Skaperen 7 17,955 Dec-31-2017, 03:47 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

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