Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Designer Formula Question (DateTime)

Status
Not open for further replies.

gonzo27

Technical User
Mar 6, 2008
10
0
0
US
Good Morning,

Can someone please tell me how to convert SSSS (Seconds since midnight) to HH:MI in Universe Designer? For example 55,080 = 3:18 PM

This is simple enough in Crystal
TimeSerial (0,0,55080)

but I cannot for the life of me figure it out in Oracle. I have tried to_timestamp and to_date but keep getting 'invalid hour' messages.

PLEASE HELP!!!

Thanks,
John

 
You can get creative with the following functions:

Mod, To_Char, Trunc and ||:

Code:
Trunc(Mod(<field in SSSSS format>,3600))

will net you the hour part.

I have no Oracle database at hand, otherwise I would have given you the entire expression..

Ties Blom

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top