About 5,520,000 results
Open links in new tab
  1. Java: convert seconds to minutes, hours and days [duplicate]

    You need to work out how many seconds in a day, divide your input by the result to get the days, and subtract it from the input to keep the remainder. You then need to work out how many …

  2. How many seconds in а day? | Learn math - Preply

    One minute has 60 seconds, One hour has 60 minutes and one day has 24 hours. Thus, 80 x 60 x 24 = 86,400 seconds in a day. One common calendar year has 365 days: Thus, 365 x …

  3. Extracting the total number of seconds from an interval data-type

    Apr 10, 2012 · 37 An easy way: select extract(day from (ts1-ts2)*86400) from dual; The idea is to convert the interval value into days by times 86400 (= 24*60*60). Then extract the 'day' value …

  4. datetime - Java: convert seconds into day, hour, minute and …

    Jul 6, 2012 · I am using TimeStamp class to convert seconds into Day,Hours,Minutes,Seconds. I used following code public static void calculateTime(long seconds) { int day = …

  5. Function to convert seconds into minutes, hours, and days

    There are 86400 seconds in a day, so that's why you can only have 0-86399 seconds. In other words, timedelta (seconds=86400) would resolve to days=1, seconds=0. Therefore, 86399 is …

  6. In Python, how do you convert a `datetime` object to seconds?

    Dec 6, 2018 · For the special date of January 1, 1970 there are multiple options. For any other starting date you need to get the difference between the two dates in seconds. Subtracting two …

  7. Convert seconds to days, hours, minutes and seconds

    Mar 19, 2016 · Your given seconds 123456 would be 1 days, 10 Hrs, 17 Minutes, 36 Seconds not 1 days, 4 Hrs, 40 Minutes, 45 Seconds edited Oct 18, 2017 at 11:49 answered Mar 19, 2016 …

  8. How do I check the difference, in seconds, between two dates?

    So, for smaller operations, such as difference of seconds, milliseconds, or microseconds, one could use (b-a).microseconds and then divide that to get the seconds (1000000) or …

  9. How do I convert seconds to hours, minutes and seconds?

    I have a function that returns information in seconds, but I need to store that information in hours:minutes:seconds. Is there an easy way to convert the seconds to this format in Python?

  10. SQL server, Converting Seconds to Minutes, Hours, Days

    Oct 10, 2013 · 1 Day(s), 14 Hour(s), 51 Minute(s), 45 Second(s). You can replace 60/60/24 with 86400 etc. but I find it better self-documenting if you leave in the /seconds/minutes/hours …