Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Conversion from- "HH:MM:SS" to "Hours:Minutes:Seconds"

EN6924
10 - Fireball

Let's assume, the time taken to complete a job shows in HH:MM:SS format i.e.,

EN6924_0-1640927827541.png

EN6924_1-1640927855470.png

 

Q. How do I convert the entire column to - let's say Row 1 would be 57 Minutes 59 Seconds?

 

I did it but it's the correct result - 

 

1. Changed the column data type to - V_String

2. Applied Text to column, Delimiter ":"

3. Connected a formula tool -- [1]+" "+"Hours" +" "+ [2]+" Minutes" +" "+ [3] +" Seconds"

 

EN6924_2-1640928322411.png

 

Please guide me..

 

 

 

3 REPLIES 3
Qiu
21 - Polaris
21 - Polaris

@EN6924 
I blieve you almost get there.
I assume you dont want the leading zero as well.

1231-EN6924.PNG

binu_acs
21 - Polaris

@EN6924  other option using datetinme formula

 

 

DateTimeFormat((DateTimeParse("2021-01-01" + [Time],"%Y-%m-%d %H:%M:%S")),"%H") + " Hours " + DateTimeFormat((DateTimeParse("2021-01-01" + [Time],"%Y-%m-%d %H:%M:%S")),"%M") + " Minutes " + DateTimeFormat((DateTimeParse("2021-01-01" + [Time],"%Y-%m-%d %H:%M:%S")),"%S") + " Seconds"

 

binuacs_0-1640930620542.png

 

Qiu
21 - Polaris
21 - Polaris

@EN6924 

Thank you for accepting my answer.

I am thinking sumit this one as a weekly challenge idea. Hope you will not opose it. 😁

Labels
Top Solution Authors