gfxgfx
 
Please login or register.

Login with username, password and session length
 
gfx gfx
gfx
76793 Posts in 13502 Topics by 1651 Members - Latest Member: Arnold99 November 21, 2024, 11:00:03 pm
*
gfx*gfx
gfx
WinMX World :: Forum  |  Metis Scripts and Help  |  Other Metis scripts  |  World Clock
gfx
gfxgfx
 

Author Topic: World Clock  (Read 2110 times)

0 Members and 1 Guest are viewing this topic.

Offline Max™

  • MX Hosts
  • *****
  • If Im Not Back later... Wait Longer
    • Maxtech
World Clock
« on: December 02, 2006, 12:45:25 am »
i have added some to this and it works fairly well, but needs updating when changing daylight saving time.
this is set up for UK and shows time zones for:
Asia
Europe
South Africa
United States
Australia
New Zealand
it is set up on GMT UK
Code: [Select]
<config>

<command type="script">
<in>!time</in>
<out>=> for times around the world:\n#c10# type #c1#uktime   #c10#for UK \n#c13# type #c1#aftime    #c13#for South Africa \n#c2# type #c1#eutime   #c2#for Central Europe \n#c16# type #c1#ustime   #c16#for USA and Canada \n#c8# type #c1#asiatime #c8#for East Asia and East India \n#c20# type #c1#austime  #c20#for Australia and New Zealand</out>
</command>

<command type="script">
<in>uktime</in>
<out type="push" extdata="time">%LOCALTIME%</out>
<out type="push" extdata="hour"><operator type="strleft" rvalue="2" lvalue="$time$"/></out>
<out type="push" extdata="minutesec"><operator type="strrem" lvalue="$time$" rvalue="$hour$"/></out>
<out type="push" extdata="minute"><operator type="strleft" lvalue="$minutesec$" rvalue="3"/></out>
<out type="goto" extdata="2" condition="0" lvalue=$hour$ rvalue="00"></out>
<out type="push"extdata="hour"><operator type="strrep" nvalue=$hour$ lvalue="00" rvalue="24"/></out>
<out type="push" extdata="ukhour"><operator type="-" lvalue=$hour$ rvalue="0"/></out>
<out type="push" extdata="uktime"><operator type="strcat" lvalue="$ukhour$" rvalue="$minute$"/></out>
<out type="script">The UK time is  #c1#$uktime$</out>
</command>

<command type="script">
<in>eutime</in>
<in>aftime</in>
<out type="push" extdata="time">%LOCALTIME%</out>
<out type="push" extdata="hour"><operator type="strleft" rvalue="2" lvalue="$time$"/></out>
<out type="push" extdata="minutesec"><operator type="strrem" lvalue="$time$" rvalue="$hour$"/></out>
<out type="push" extdata="minute"><operator type="strleft" lvalue="$minutesec$" rvalue="3"/></out>
<out type="goto" extdata="2" condition="0" lvalue=$hour$ rvalue="00"></out>
<out type="push"extdata="hour"><operator type="strrep" nvalue=$hour$ lvalue="00" rvalue="24"/></out>
<out type="push" extdata="eu"><operator type="+" lvalue=$hour$ rvalue="1"/></out>
<out type="goto" extdata="2" condition="2" lvalue=$eu$ rvalue="24"></out>
<out type="push" extdata="eu"><operator type="-" lvalue=$eu$ rvalue="24"/></out>
<out type="push" extdata="eu"><operator type="strcat" lvalue="$eu$" rvalue="$minute$"/></out>
<out type="push" extdata="sa"><operator type="-" lvalue=$eu$ rvalue="24"/></out>
<out type="push" extdata="sa"><operator type="strcat" lvalue="$eu$" rvalue="$minute$"/></out>
<out type="script">South African time is     #c1#$eu$</out>
<out type="script">Central European time is  #c1#$eu$</out>
</command>

<command type="script">
<in>ustime</in>
<out type="push" extdata="time">%LOCALTIME%</out>
<out type="push" extdata="hour"><operator type="strleft" rvalue="2" lvalue="$time$"/></out>
<out type="push" extdata="minutesec"><operator type="strrem" lvalue="$time$" rvalue="$hour$"/></out>
<out type="push" extdata="minute"><operator type="strleft" lvalue="$minutesec$" rvalue="3"/></out>
<out type="goto" extdata="2" condition="0" lvalue=$hour$ rvalue="00"></out>
<out type="push" extdata="hour"><operator type="strrep" nvalue=$hour$ lvalue="00" rvalue="24"/></out>
<out type="push" extdata="pst"><operator type="-" lvalue=$hour$ rvalue="8"/></out>
<out type="goto" extdata="2" condition="3"lvalue=$hour$ rvalue="8"></out>
<out type="push" extdata="pst"><operator type="+" lvalue=$pst$ rvalue="24"/></out>
<out type="push" extdata="mt"><operator type="-" lvalue=$hour$ rvalue="7"/></out>
<out type="goto" extdata="2" condition="3"lvalue=$hour$ rvalue="7"></out>
<out type="push" extdata="mt"><operator type="+" lvalue=$mt$ rvalue="24"/></out>
<out type="push" extdata="ct"><operator type="-" lvalue=$hour$ rvalue="6"/></out>
<out type="goto" extdata="2" condition="3"lvalue=$hour$ rvalue="6"></out>
<out type="push" extdata="ct"><operator type="+" lvalue=$ct$ rvalue="24"/></out>
<out type="push" extdata="et"><operator type="-" lvalue=$hour$ rvalue="5"/></out>
<out type="goto" extdata="2" condition="3"lvalue=$hour$ rvalue="5"></out>
<out type="push" extdata="et"><operator type="+" lvalue=$et$ rvalue="24"/></out>
<out type="push" extdata="pacific"><operator type="strcat" lvalue="$pst$" rvalue="$minute$"/></out>
<out type="push" extdata="mountain"><operator type="strcat" lvalue="$mt$" rvalue="$minute$"/></out>
<out type="push" extdata="central"><operator type="strcat" lvalue="$ct$" rvalue="$minute$"/></out>
<out type="push" extdata="eastern"><operator type="strcat" lvalue="$et$" rvalue="$minute$"/></out>
<out type="script">Mountain time is         #c1#$mountain$</out>
<out type="script">Pacific Standard time is    #c1#$pacific$</out>
<out type="script">Central Standard time is   #c1#$central$</out>
<out type="script">Eastern Standard time is  #c1#$eastern$</out>
</command>

<command type="script">
<in>austime</in>
<out type="push" extdata="time">%LOCALTIME%</out>
<out type="push" extdata="hour"><operator type="strleft" rvalue="2" lvalue="$time$"/></out>
<out type="push" extdata="minutesec"><operator type="strrem" lvalue="$time$" rvalue="$hour$"/></out>
<out type="push" extdata="minute"><operator type="strleft" lvalue="$minutesec$" rvalue="3"/></out>
<out type="goto" extdata="2" condition="0" lvalue=$hour$ rvalue="00"></out>
<out type="push"extdata="hour"><operator type="strrep" nvalue=$hour$ lvalue="00" rvalue="24"/></out>
<out type="push" extdata="nz"><operator type="+" lvalue=$hour$ rvalue="11"/></out>
<out type="goto" extdata="2" condition="2" lvalue=$nz$ rvalue="24"></out>
<out type="push" extdata="nz"><operator type="-" lvalue=$nz$ rvalue="24"/></out>
<out type="push" extdata="ae"><operator type="+" lvalue=$hour$ rvalue="9"/></out>
<out type="goto" extdata="2" condition="2" lvalue=$ae$ rvalue="24"></out>
<out type="push" extdata="ae"><operator type="-" lvalue=$ae$ rvalue="24"/></out>
<out type="push" extdata="aw"><operator type="+" lvalue=$hour$ rvalue="7"/></out>
<out type="goto" extdata="2" condition="2" lvalue=$aw$ rvalue="24"></out>
<out type="push" extdata="aw"><operator type="-" lvalue=$aw$ rvalue="24"/></out>
<out type="push" extdata="new"><operator type="strcat" lvalue="$nz$" rvalue="$minute$"/></out>
<out type="push" extdata="ausest"><operator type="strcat" lvalue="$ae$" rvalue="$minute$"/></out>
<out type="push" extdata="auswst"><operator type="strcat" lvalue="$aw$" rvalue="$minute$"/></out>
<out type="script">New Zealand time is     #c1#$new$</out>
<out type="script">Eastern Standard time is  #c1#$ausest$</out>
<out type="script">Western Standard time is  #c1#$auswst$</out>
</command>

<command type="script">
<in>asiatime</in>
<out type="push" extdata="time">%LOCALTIME%</out>
<out type="push" extdata="hour"><operator type="strleft" rvalue="2" lvalue="$time$"/></out>
<out type="push" extdata="minutesec"><operator type="strrem" lvalue="$time$" rvalue="$hour$"/></out>
<out type="push" extdata="minute"><operator type="strleft" lvalue="$minutesec$" rvalue="3"/></out>
<out type="goto" extdata="2" condition="0" lvalue=$hour$ rvalue="00"></out>
<out type="push"extdata="hour"><operator type="strrep" nvalue=$hour$ lvalue="00" rvalue="24"/></out>
<out type="push" extdata="ja"><operator type="+" lvalue=$hour$ rvalue="8"/></out>
<out type="goto" extdata="2" condition="2" lvalue=$ja$ rvalue="24"></out>
<out type="push" extdata="ja"><operator type="-" lvalue=$ja$ rvalue="24"/></out>
<out type="push" extdata="ch"><operator type="+" lvalue=$hour$ rvalue="7"/></out>
<out type="goto" extdata="2" condition="2" lvalue=$ch$ rvalue="24"></out>
<out type="push" extdata="ch"><operator type="-" lvalue=$ch$ rvalue="24"/></out>
<out type="push" extdata="in"><operator type="-" lvalue=$hour$ rvalue="6"/></out>
<out type="goto" extdata="2" condition="3"lvalue=$hour$ rvalue="6"></out>
<out type="push" extdata="in"><operator type="+" lvalue=$in$ rvalue="24"/></out>
<out type="push" extdata="japan"><operator type="strcat" lvalue="$ja$" rvalue="$minute$"/></out>
<out type="push" extdata="china"><operator type="strcat" lvalue="$ch$" rvalue="$minute$"/></out>
<out type="push" extdata="india"><operator type="strcat" lvalue="$in$" rvalue="$minute$"/></out>
<out type="script">Japan time is     #c1#$japan$</out>
<out type="script">China time is     #c1#$china$</out>
<out type="script">East India time is  #c1#$india$</out>
</command>

</config>



Try Connecting, the attacks may let you  https://patch.winmxconex.com/

WinMX World :: Forum  |  Metis Scripts and Help  |  Other Metis scripts  |  World Clock
 

gfxgfx
gfx
©2005-2024 WinMXWorld.com. All Rights Reserved.
SMF 2.0.19 | SMF © 2021, Simple Machines | Terms and Policies
Page created in 0.016 seconds with 21 queries.
Helios Multi © Bloc
gfx
Powered by MySQL Powered by PHP Valid XHTML 1.0! Valid CSS!