Solved

Convert 07:38:24 to mins

Posted on 2004-10-12
1
124 Views
Last Modified: 2013-12-24
The data is inserted into the db like 07:38:24

I'm not concerned about the seconds part...how can I convert this into one variable that is just minutes? The output would be 458

Also, 00:45:55 would be 45
0
Comment
Question by:JRockFL
1 Comment
 
LVL 35

Accepted Solution

by:
mrichmon earned 50 total points
ID: 12291728
<cfset myTime = "07:38:24">

<cfset myMin =( ListFirst(myTime, ":") * 60) + ListGetAt(myTime, 2, ":")>
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now