• Instructions to Ask a Question

    For any assistance, please click the "Ask a Question" button and select the Pabbly product for which you require support.

    We offer seven comprehensive applications designed to help you efficiently manage and grow your business:

    Our support team endeavors to respond within 24 business hours (Monday to Friday, 10:00 AM to 6:00 PM IST). We appreciate your understanding and patience.

    🚀 Exclusive Lifetime Offers 🚀

    We invite you to take advantage of our special one-time payment plans, providing lifetime access to select applications:

    • 🔥 Pabbly Connect — Lifetime Access for $249View Offer
    • 🔥 Pabbly Subscription Billing — Lifetime Access for $249View Offer
    • 🔥 Pabbly Chatflow — Lifetime Access for $249View Offer

    Make a one-time investment and enjoy the advantages of robust business management tools for years to come.

Converting milliseconds to mm:ss

salasia

Member
Hi, I think there is a small bug in your Date/Time converter.
I need to convert the duration of a video in milliseconds to this format: mm:ss
But it works only starting from around 276000 ms (which is 04:36). Below that (as per my screenshot), the response is always 00:00
Could you please check and let me know if you can fix it?
Regards
Sergio
 

Attachments

  • milliseconds.png
    milliseconds.png
    89 KB · Views: 87
P

Pabblymember11

Guest
Hey @salasia

It seems like you didn't pass the timestamp in the correct format in the Date Time Formatter action step.

Timestamp with millisecond format has 13 digits on it- 1254741245896, where you have passed the time with only 6 digits.

Kindly try passing the timestamp in the correct format and try again.

2022-02-02_17h58_26.png
 

salasia

Member
Hi Supreme,

thank you for your reply. I don't need to format a proper timestamp, but the duration of a video, between 00:01 (one second) and 59:59.
I take this value from Google Drive, so for example:
5,000 ms = 5 seconds = 00:05
60,000 ms = 1 minute = 01:00
etc.

Now, after many experiments, I've realised that (for my purpose) Pabbly works only when the duration is over 4 minutes 36 seconds, otherwise it will just return 00:00.

Here for example:
600,000 ms = 10 minutes = 10:00
1643810000277.png

I was just wondering if this was something that can be fixed because it doesn't make sense that it works for higher values and it doesn't for smaller values.
Bests
Sergio
 
P

Pabblymember11

Guest
Hey @salasia

Date/Time Formatter doesn't work that way, it basically converts the date from one format to another. It doesn't convert time from milliseconds to mm: ss.

And if you want to convert the time from millisecond to minutes and seconds, you can try the mathematical formula for that.


2022-02-03_11h10_49.png
 

salasia

Member
Hi @Supreme,

apparently it does work like that, as I've tried a lot of small millisecond values and it returns the right min:sec value. But weirdly enough it doesn't work for very very small values (below ~280000 ms) but I think it should. Because it would be like converting the very early timestamps that were used just past midnight Jan 1st 1970, example:
1643878044661.png


I know I can use the math formula to convert it, but it gives me the decimal seconds, not the "0-59" seconds. So for a video that is 4 and a half minutes long, I want to see 4:30 instead of 4.50.

Thanks for your patience ;)
Sergio
 
Top