Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Converting hours to min

Hi,

Is it possible to show convert hours into minutes by adding the minutes to it. Like if it is 12:50:00. I want to convert the 12hrs to minutes and add with the 50 minutes.

1 Solution

Accepted Solutions
rbecher
MVP
MVP

You want this?

= hour('12:50:00') * 60 + minute('12:50:00')


Astrato.io Head of R&D

View solution in original post

5 Replies
Not applicable
Author

use this

=



SubField('12:50:00',':',1) *60 + SubField('12:50:00',':',2)

SubField('12:50:00',':',1) *60 + SubField('12:50:00',':',2)





Not applicable
Author

Hello again,

see the attached example.

I played arround a little bit with days, hours, minutes and so on.

Good luck!

Rainer

rbecher
MVP
MVP

You want this?

= hour('12:50:00') * 60 + minute('12:50:00')


Astrato.io Head of R&D
hector
Specialist
Specialist

Hi, this helps too


interval('12:50','m')


returns 770 = 12*60 + 50

Rgds

johnw
Champion III
Champion III

Yet another way:

interval#('12:50','hh:mm')*24*60