hasSameRules (JavaScript)

This method returns true if this zone has the same rule and offset as another zone. That is, if this zone differs only in ID, if at all. It returns false if the other zone is null.

Defined in

TimeZone (JavaScript)

Syntax

hasSameRules(TimeZone:TimeZone) : boolean
Parameters Description
TimeZone The TimeZone object to be compared with.
Return value Description
boolean True if the other zone is not null and is the same as this one, with the possible exception of the ID.