How would you convert secs to HH:MM:SS format in SQLite?
A:
Well, i would do something like this, but i'm getting hours plus 12...
SELECT strftime('%H-%M-%S', CAST(<seconds here> / 86400.0 AS DATETIME))
-- For subtracting the 12 hours difference :S
SELECT strftime('%H-%M-%S', CAST(<seconds here> / 86400.0 AS DATETIME) - 0.5)
Jhonny D. Cano -Leftware-
2010-04-21 19:45:16
I think it is adjustjing for the start of the epoch. I know it can work, I will work it out.
vfclists
2010-04-21 19:57:37
well, thanks for the nudge !! I thought nobody was going to answer so I dropped it out
Jhonny D. Cano -Leftware-
2010-04-21 21:12:30