PC Help And Information Easy Maintenance And Free Software
 
HomePortalFAQSearchRegisterLog in

Share | 
 

 World Clock : Short Version

View previous topic View next topic Go down 
AuthorMessage
Steve™
Management

Management
avatar

Male
Number of posts : 2447
Home : At Home
Humor : If Im Not Back Later... Wait Longer
Registration date : 2007-07-30

PostSubject: World Clock : Short Version   Tue Jul 31, 2007 5:45 pm

Code:
<config>

 /// this will need updating when the clocks change for DST (daylight saving time)

<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>



Back to top Go down
http://maxtech.youneed.us
 
World Clock : Short Version
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Naturalizer Around the World Contest *usa only*
» General Tours World Travel Photo Contest *usa only*
» WORLD SERIES TICKETS GIVEAWAY *Canada and usa only*
» The World at War - The Desert North Africa (1973) DVDRip x264
» Short Story Writing Contest *read restrictions*

Permissions in this forum:You cannot reply to topics in this forum
MaxTech ::  The World Of WinMX Chat :: Metis Working Scripts Centre-
Jump to: