Class NSTimeZoneAgent
Syntax
Examples
NSTimeZoneAgent agent;
agent.callMethod(arg1, arg2);
Constructors
NSTimeZoneAgent()
Declaration
Examples
NSTimeZoneAgent agent;
agent.callMethod(arg1, arg2);
Methods
CheckNewTimeZoneDataAvailable()
Checks to see if new timezone data is available
Declaration
Bool CheckNewTimeZoneDataAvailable()
Returns
Examples
NSTimeZoneAgent agent;
Bool res = agent.CheckNewTimeZoneDataAvailable();
DeleteTimeZones()
Deletes all time zone data (locations and rules) from the database
Declaration
Returns
Examples
NSTimeZoneAgent agent;
agent.callMethod(arg1, arg2);
GetBaseTimeZoneId()
Gets the base timezone ID.
Declaration
Integer GetBaseTimeZoneId()
Returns
Examples
NSTimeZoneAgent agent;
Integer res = agent.GetBaseTimeZoneId();
GetDefaultTimeZonePreference()
Returns the ID of the default timezone preference with deflevel system wide
Declaration
Integer GetDefaultTimeZonePreference()
Returns
Examples
NSTimeZoneAgent agent;
Integer res = agent.GetDefaultTimeZonePreference();
InitializeTimeZoneData()
Initializes the NSTimeZoneData
Declaration
NSTimeZoneData[] InitializeTimeZoneData()
Returns
Examples
NSTimeZoneAgent agent;
agent.callMethod(arg1, arg2);
SetActiveTimeZoneRow(Integer,Bool)
Sets active state of singe row in the TZLocation table
Declaration
Void SetActiveTimeZoneRow(Integer id, Bool active)
Parameters
Returns
Examples
NSTimeZoneAgent agent;
agent.callMethod(arg1, arg2);
SetActiveTimeZonesByFilter(String,Bool)
Toggles active state of a single row in the TZLocation table
Declaration
Void SetActiveTimeZonesByFilter(String filter, Bool active)
Parameters
Returns
Examples
NSTimeZoneAgent agent;
agent.callMethod(arg1, arg2);
SetBaseTimeZoneId(Integer)
Sets the base timezone ID.
Declaration
Bool SetBaseTimeZoneId(Integer timezoneId)
Parameters
Type |
Name |
Description |
Integer |
timezoneId |
|
Returns
Examples
NSTimeZoneAgent agent;
Integer timezoneId;
Bool res = agent.SetBaseTimeZoneId(timezoneId);
TimeOfLastTimeZoneUpdate()
Gets the time time zone data was last updated
Declaration
DateTime TimeOfLastTimeZoneUpdate()
Returns
Examples
NSTimeZoneAgent agent;
DateTime res = agent.TimeOfLastTimeZoneUpdate();
ToggleActiveTimeZoneRow(Integer)
Toggles active state of a single row in the TZLocation table
Declaration
Void ToggleActiveTimeZoneRow(Integer id)
Parameters
Returns
Examples
NSTimeZoneAgent agent;
agent.callMethod(arg1, arg2);
UpdateTimeZoneData()
Retrieves time zone data from the SuperOffice server and update TimeZone data in the database
Declaration
Bool UpdateTimeZoneData()
Returns
Examples
NSTimeZoneAgent agent;
Bool res = agent.UpdateTimeZoneData();