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

How to Convert Time into Number

Status
Not open for further replies.

joethehoe

Technical User
Jan 2, 2002
27
US
Does anybody know how to convert:

TimeValue ({mo_agent_unit.tdTime}) to a number??

I seen a number of differnt ways to convert numbers to time but not back to a number.

something like 5:00:00am and 5:30:00am to 05 and 05.5

Help, Help!!
 
How about:


numberVar intHours := Hour({VP_USERACCOUNT.PWDUPDATEDTM});
numberVar intMinutes := Minute({VP_USERACCOUNT.PWDUPDATEDTM});
numberVar intSeconds := Second({VP_USERACCOUNT.PWDUPDATEDTM});

intHours + (intMinutes / 60) + (intSeconds / 3600)



Peter.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top