HS.Timezone.Server.RuleEvaluator
class HS.Timezone.Server.RuleEvaluator
Method Inventory
Methods
classmethod BeforeChangeTime(configuration As %DynamicObject, time As %String) as %Boolean
Returns true if the provided time is before the configuration's change
time.
@Argument configuration Rule configuration @Argument time Time to compare configuration to - hh:mm:ss
@Argument configuration Rule configuration @Argument time Time to compare configuration to - hh:mm:ss
classmethod BeforeRuleStarts(year As %Integer, month As %Integer, day As %Integer, time As %String, configuration As %DynamicObject) as %Boolean
Compares a configuration against a date and returns whether the date
is before the rule takes effect.
@Argument year Year @Argument month Month @Argument day Day @Argument configuration Rule configuration to compare date against
@Argument year Year @Argument month Month @Argument day Day @Argument configuration Rule configuration to compare date against
Returns the day of the month that a rule configuration takes effect.
@Argument configuration Rule configuration @Argument year Year the date is requested for
@Argument configuration Rule configuration @Argument year Year the date is requested for
classmethod GetRuleConfiguration(configurations As %DynamicArray, timestamp As %TimeStamp) as %DynamicObject
Returns the active rule configuration from a list of configurations,
based on a provided timestamp.
@Argument configurations List of rule configurations @Argument timestamp Timestamp to get rule for
@Argument configurations List of rule configurations @Argument timestamp Timestamp to get rule for