Pattycake245
Programmer
Hello,
I am working a table of categories which includes an interger column containing the totals seconds for that category. I am trying to convert the seconds to hour/minutes/seconds, but am getting strange results. It's been a long week, but, why do these two statements output such different results:
Select convert(char(8), dateadd(s, 2450000, '1900-01-01'), 8)
results in - 08:33:20
Select convert(char(8), dateadd(s, 2600000, '1900-01-01'), 8)
results in - 02:13:20
How can the first be more hours than the second?
Tim
I am working a table of categories which includes an interger column containing the totals seconds for that category. I am trying to convert the seconds to hour/minutes/seconds, but am getting strange results. It's been a long week, but, why do these two statements output such different results:
Select convert(char(8), dateadd(s, 2450000, '1900-01-01'), 8)
results in - 08:33:20
Select convert(char(8), dateadd(s, 2600000, '1900-01-01'), 8)
results in - 02:13:20
How can the first be more hours than the second?
Tim