background image

Programming i!-TimeManager

8

 i!-TimeManager

i!-TimeManagerEngineMod Module Definitions (Cont.)

strTmTzDesc

A string containing the time zone description. 

For the Eastern time zone: 

• "EST" for Standard time 

• "EDT" for Daylight Saving time

For the Central time zone: 

• "CST" for Standard time 

• "CDT" for Daylight Saving time

For the Mountain time zone: 

• "MST" for Standard time 

• "MDT" for Daylight Saving time

For the Pacific time zone: 

• "PST" for Standard time 

• "PDT" for Daylight Saving time

This string is dynamic, since the module determines Daylight Saving time. The "%s" 
allows the module to replace a portion of the string with a string listed in the DST rules. 
So to handle the case you specify:

• "E%sT"    Eastern time zone

• "C%sT"    Central time zone

• "M%sT"   Mountain time zone

• "P%sT"    Pacific time zone

For description in DTS time rules, you use: 

• Standard Description: S 

• Daylight Saving Description: D

Then the module will create "EST" or "EDT" (for the Eastern time zone) depending on 
whether DTS is in effect or not. The "%s" is a placeholder for a string specified in the 
DTS rules section.

dTmTzGmtOffset

A floating point number containing the GTM offset in hours. The common US offsets 
are:

• Eastern = -5

• Center = -6

• Mountain = -7

• Pacific  =  -8

Locations such as Newfoundland, which runs 3 hours 30 minutes behind GMT would 
use a GMT offset of -3.5. This information is used for calculating sunrise and sunset 
times and for calculating local time when communicating with a Internet time server.

strTmTzDstRules

A string containing 1 or more daylight saving rule strings.  Multiple daylight saving rules 
are separated with the "$FF" character. Two stardard rule strings, ‘None’ and ‘US’ will 
disable daylight savings time (default) and enable US daylight savings rules respec-
tively. For other locations, daylight saving rule strings should be in the following format:

Custom string: "Month" "DayDescription" "Time" "Offset From Std" "Description"

               "Month":          Month name ex: "Apr"

               "Time"            Time to activate (hh:mm:ss, 24 hour).  ex: "02:00:00"

                 "Offset From Std" Time to offset from GMT (hh:mm:ss, 24 hour).  ex: "01:00:00"

                 "Description"     String to replace "%s" with in Timezone description.  ex: 'D'

               "DayDescription"  Day Description. Fixed Date, Last Day Of Week or

                                 First Day of Week Before/After Date

                                 Fixed ex: "15"

                                 Last Day of Week ex: "LastSunday"

                                 First Day of Week Beforer DATE-ex: "Sun<=24"

                                 First Day of Week After DATE-ex: "Sun>=1"

See 

i!-TimeManagerEngineModTest.axs

 for more examples.

strTmLocName

A string describing the location the system is installed in. This could be any string 
describing the region or city.

Continued

Summary of Contents for I!-TIMEMANAGER

Page 1: ...instruction manual integration Solutions i TimeManager...

Page 2: ...any accompanying hardware This limited warranty gives you specific legal rights You may have others which vary from state country to state country NO LIABILITY FOR CONSEQUENTIAL DAMAGES In no event sh...

Page 3: ...rted Operating Systems 1 Minimum PC Requirements 1 Installing i TimeManager 2 Time Protocols 3 DayTime Protocol 3 Time Protocol 4 SNTP Protocols 4 Choosing a Protocol 4 Programming i TimeManager 7 i T...

Page 4: ...ii i TimeManager Table of Contents...

Page 5: ...ws NT 4 0 Workstation or Server service pack 6 B or greater with at least 64 MB of installed memory Windows 2000 Professional or Server running on a Pentium 266 MHZ processor minimum requirement 300 M...

Page 6: ...xt to proceed 4 In the i TimeManager Select Components dialog select which example programs you would like to install 5 In the Select i TimeManager Install Location dialog use the Browse button to nav...

Page 7: ...the NIST Time servers and calculating the correct time and date for any location in the world i Time Manager also supports the standard NIST server list a file called nist srv lst and will attempt to...

Page 8: ...ter Feb 7 2036 SNTP message can represent a Date and Time accurately until some time in the year 2104 Most of the NIST servers also provide Date and Time information in SNTP format The difference betw...

Page 9: ...nchronize the NetLinx Master s time with the servers at NIST It would be a good idea to setup the DNS server entries on the NetLinx Master but not required If the name lookup fails for a given server...

Page 10: ...Time Protocols 6 i TimeManager...

Page 11: ...Mod Module definition code is displayed below You can use this as a start to create custom programming or use it as is for the standard functionality Where mdlTm is a unique module name DEFINE_MODULE...

Page 12: ...stern 5 Center 6 Mountain 7 Pacific 8 Locations such as Newfoundland which runs 3 hours 30 minutes behind GMT would use a GMT offset of 3 5 This information is used for calculating sunrise and sunset...

Page 13: ...ime server protocol number to allow the Netlinx system to synchronous its clock with an Internet time server The available values are 0 Disabled 1 DayTime 13 udp 13 tcp 2 Time 37 udp 37 tcp 3 SNTP 123...

Page 14: ...r 10 i TimeManager Strings i TimeManager supports the following in bound strings device to Master i TimeManager Strings Syntax Description SUNRISE Sunrise Time Sunrise time for today SUNSET Sunset Tim...

Page 15: ...Programming i TimeManager 11 i TimeManager...

Page 16: ...ve richardson TX 75082 USA 469 624 8000 800 222 0193 fax 469 624 7153 technical support 800 932 6993 033 004 2612 4 03 2003 AMX Corporation All rights reserved AMX the AMX logo the building icon the h...

Reviews: