Quick Sign In:  

Forum: VirtualDJ Skins

Topic: get time with 2 numbers

This topic is old and might contain outdated or incorrect information.

Dodge57PRO InfinityMember since 2009
Hello,

I am trying to display minutes, seconds and milliseconds separately with 2 digits even if it is less than 10.

So instead of having for example "1" minute, I would like to display "01" with the verbs get time_min remain, get time_sec remain and get time_ms remain.

it's possible ??
 

Posted Thu 14 Feb 13 @ 9:24 pm
Dodge57PRO InfinityMember since 2009
up...
 

Posted Fri 15 Feb 13 @ 4:33 pm
djdadPRO InfinityDevelopment ManagerMember since 2005
not possible
 

Posted Fri 15 Feb 13 @ 5:20 pm
Dodge57PRO InfinityMember since 2009
I test this :

format="`get time_min remain & param_greater 9 ? nothing : get text '0' `"/>
format="`get time_min remain & param_greater 9 ? get text '0' : nothing`"

that's work ! If the time is greater ar smaller as 9, it display 0.

But if I test this :
format="`get time_min remain & param_smaller 9 ? get time_min remain : get text '0' get time_min remain`"
that doe'nt work anymore... may be a script error?

 

Posted Sat 16 Feb 13 @ 8:43 am
Dodge57PRO InfinityMember since 2009
I still continue to search a solution ;)


The real time minutes and secondes :

<textzone pannel="ECRAN1" deck="1">
<size width="21" height="17"/>
<pos x="69" y="543"/>
<up x="85" y="2256"/>
<text dx="0" dy="-1" font="digital-7" size="21" color="#FFFFFF" align="center" format="`get time_min remain`"/>
</textzone>
<textzone pannel="ECRAN1" deck="1">
<size width="21" height="17"/>
<pos x="92" y="543"/>
<up x="90" y="2126"/>
<text dx="0" dy="-1" font="digital-7" size="21" color="#FFFFFF" align="right" format="`var '$TIME1' 0 ? get time_sec remain : get time_sec elapsed`"/>
</textzone>

minutes tens____________________________________
<textzone pannel="ECRAN1" deck="1">
<size width="11" height="17"/>
<pos x="68" y="573"/>
<up x="85" y="2256"/>
<text dx="0" dy="-1" font="digital-7" size="21" color="#FFFFFF" align="right" format="`get time_min remain & param_add -5 & param_multiply 0.1 & param_cast 'integer'`"/>
</textzone>
minutes units____________________________________
<textzone pannel="ECRAN1" deck="1">
<size width="11" height="17"/>
<pos x="85" y="573"/>
<up x="85" y="2256"/>
<text dx="0" dy="-1" font="digital-7" size="21" color="#FFFFFF" align="left" format="`get time_min remain & param_mod 10`"/>
</textzone>
secondes tens_______________________________________
<textzone pannel="ECRAN1" deck="1">
<size width="11" height="17"/>
<pos x="111" y="573"/>
<up x="85" y="2256"/>
<text dx="0" dy="-1" font="digital-7" size="21" color="#FFFFFF" align="right" format="`get time_sec remain & param_add -5 & param_multiply 0.1 & param_cast 'integer'`"/>
</textzone>
secondes units_______________________________________
<textzone pannel="ECRAN1" deck="1">
<size width="11" height="17"/>
<pos x="126" y="573"/>
<up x="85" y="2256"/>
<text dx="0" dy="-1" font="digital-7" size="21" color="#FFFFFF" align="left" format="`get time_sec remain & param_mod 10`"/>
</textzone>

it works but it is very laborious !

maybe someone has an idea to improve this script ?
 

Posted Sun 17 Feb 13 @ 9:04 am


(Old topics and forums are automatically closed)