SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Convert Seconds
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

whitmoj
Yak Posting Veteran

United Kingdom
68 Posts

Posted - 12/01/2008 :  09:31:53  Show Profile  Reply with Quote
Can any one advise how to convert seconds (stored as a decimal) to hours min's and sec's

Whitmoj
If you are in a hurry you will never get there

visakh16
Very Important crosS Applying yaK Herder

India
52325 Posts

Posted - 12/01/2008 :  09:36:07  Show Profile  Reply with Quote
SELECT secvalue/3600 as hours,(secvalue%3600)/60 as minutes,(secvalue%3600)%60 as seconds from yourtable
Go to Top of Page

whitmoj
Yak Posting Veteran

United Kingdom
68 Posts

Posted - 12/01/2008 :  10:11:27  Show Profile  Reply with Quote
Many Thanks

Whitmoj
If you are in a hurry you will never get there
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52325 Posts

Posted - 12/01/2008 :  10:25:19  Show Profile  Reply with Quote
Cheers
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.09 seconds. Powered By: Snitz Forums 2000