Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...Really appreciate your site. Really good site for learning what others do when they run into problems. You guy's are great!!!..."

Geography

Where in the world do Tek-Tips members come from?
NKOS13 (TechnicalUser)
15 Feb 11 2:26
1. l have a column which say AUDITTIME and the value for time is numeric like below:
AUDTTIME
8042131
8042131
8042131
12171217
13315139
12181989
12184103
7423235

This does not represents this format of time (13:45:62)If l manage to get the time in any type of user readable that would be perfect. l just want to convert the this format of time to a real readable time format (eg 13:45 or 13H45 62 sec)
ousoonerjoe (Programmer)
15 Feb 11 14:56
Assuming that the integer given represents number of seconds since midnight, the following should get you to where you need:

CODE

DECLARE @seconds int;
SET @seconds = 12171217;

SELECT DATEADD(second, @seconds, '20090101'),CONVERT(char(5), DATEADD(second, @seconds, '20090101'), 108);

--------------------------------------------------
"Crash programs fail because they are based on the theory that, with nine women pregnant, you can get a baby a month." --Wernher von Braun
--------------------------------------------------

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close