ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
GELÖST

Time Conversion Seconds (SS) to MM:SS

TheSAguy
Meteor

 

Hi,

 

I'm trying to convert Seconds to Minutes and Seconds. 

I'm having trouble that when there are Hours (HH) that gets added or dropped....

 

So 60 Sec should be 01:00

6000 seconds should be 100:00 and not 01:40:00

 

Thanks.

 

5 ANTWORTEN 5
DataNath
17 - Castor
17 - Castor

Don’t have my laptop to hand but give the following a try. Can check when home if this doesn’t work and nobody else has jumped in!


DateTimeFormat(DateTimeParse([Insert your field], ‘%S’), ‘%M:%S’)

DataNath
17 - Castor
17 - Castor

May need to convert your field containing seconds to a string first for the function to work.

FrederikE
Pulsar

The Time Datatype always saves it like you described it. If you want to save it differently you might want to change your datatype to be an integer. With "DateTimeMinutes" you will then get the absolut number of Minutes.

AngelosPachis
Nebula

Hi @TheSAguy ,

 

Here's how you can do it using a formula tool

 

AngelosPachis_0-1653589766192.png

 

Hope that helps,

Angelos

TheSAguy
Meteor

Thanks!! Much appreciated.

 

Beschriftungen
Top-Lösungs-Autoren