SetRule Method (PITimeZoneRule Object)

See Also     Example     Applies To    


SetRule is a method that checks the daylight transition rule provided for validity and sets the PITimeZoneRule object.



object.SetRule StartYear, EndYear, Month, Day, Week, Time, BiasOffset

The object placeholder is an object expression that evaluates to a PITimeZoneRule object. Choose values for the arguments StartYear, Month, Day, Week, Time, BiasOffset based on the property table.



Trappable Errors

In addition to generic errors (such as Out of Memory), the following errors may occur:

Error Description
tseINVALIDARG A time zone rule property was out of range.

Enabling Operational Intelligence