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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with Integer to Char to Datetime stamp

Status
Not open for further replies.

sqlPower

Technical User
Feb 2, 2023
1
US
In an ORACLE database, I have 2 fields
Categorization_Hours_Due, datatype integer, and
Categorization_Minutes_Due, also an integer.

I want to convert these to a datetime.
For example: Categorization_Hours_Due = 16
Categorization_Minutes_Due = 52

As a Timestamp, I want 16:52PM
I am using TOAD.

Thank you.[ponder]
 
Except an Oracle Timestamp does not mix 24 hour with AM/PM.

Furthermore, is Categorization_Hours_Due and Categorization_Minutes_Due referencing a point in time or a DURATION?

If it really is a DURATION of so many hours and minutes, then a timestamp (point in time) would be incorrect.

A point in time Timestamp, includes a DATE and TIME.

Skip,
[sub]
[glasses]Just traded in my OLD subtlety...
for a NUance![tongue][/sub]
"The most incomprehensible thing about the universe is that it is comprehensible" A. Einstein

You Matter...
unless you multiply yourself by the speed of light squared, then...
You Energy!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top