Solved duration format - remove padding
#1
List item.duration returns the duration in the format mmConfuseds. Is it possible to remove the padding on minutes? I.e. Display three minutes and 1 second as 3.01 instead of 03.01?
Reply
#2
With a lot of variables yes.
Reply
#3
Would you mind sharing the method hitcher or is it so slow its not really viable?
Reply
#4
PHP Code:
<variable name="Duration">
    <
value condition="StringCompare(ListItem.Duration,00:01)">$NUMBER[0.01]</value>
    ...
    <
value condition="StringComapre(ListItem.Duration,09:59)">$NUMBER[9:59]</value>
</
variable

Good luck. Wink
Reply
#5
lol! Thanks... Nothing a spreadsheet can't handle help generate I s'ppose....

Would this also work for player.time and player.duration used on a progress bar?
Reply
#6
got it working - only 1800 lines for duration, player time and player duration, but nice and easy in excel. Thanks again.
Reply

Logout Mark Read Team Forum Stats Members Help
duration format - remove padding0