- Posts: 5
- Thank you received: 0
Data conversion
7 years 8 months ago #14247
by alex
Data conversion was created by alex
Hi,
I am new to this, I have a data set with a field time format of "hh:mm:ss" and I would like to convert it seconds ONLY.
For example: 00:01:20 should return to 80
Thanks,
Alex
I am new to this, I have a data set with a field time format of "hh:mm:ss" and I would like to convert it seconds ONLY.
For example: 00:01:20 should return to 80
Thanks,
Alex
Please Log in or Create an account to join the conversation.
- Peter.Jonson
-
- Offline
- Platinum Member
-
7 years 8 months ago #14255
by Peter.Jonson
Peter Jonson
ETL Developer
Replied by Peter.Jonson on topic Data conversion
What you have to do is split values using : as delimiter
than multiply hours by 3600, minutes by 60 and add all of them together
than multiply hours by 3600, minutes by 60 and add all of them together
Peter Jonson
ETL Developer
Please Log in or Create an account to join the conversation.
7 years 8 months ago #14256
by alex
Replied by alex on topic Data conversion
Thank you for quick reply, I have never thought that it is so simple.

Please Log in or Create an account to join the conversation.