102 void getZoneInfos(out vector<ZoneInfo> zoneInfos, in
boolean useOlson);
151 out
boolean dstEnabled, out
int utcOffset,
152 out time currentTime);
Date and time configuration methods.
int setCfg(in Cfg cfg)
Set the device date and time configuration.
Protocol
Time synchronization protocol.
@ STATIC
Device time is configured locally.
void getZoneInfos(out vector< ZoneInfo > zoneInfos, in boolean useOlson)
List all supported time zones.
boolean checkNtpServer(in string ntpServer)
Check if a specified NTP server is usable.
vector< string > getActiveNtpServers()
Get active NTP servers.
void getCfg(out Cfg cfg)
Retrieve the device date and time configuration.
void getTime(in boolean useOlson, out ZoneInfo zone, out boolean dstEnabled, out int utcOffset, out time currentTime)
Retrieve the current device date and time.
Device Date and Time Configuration.
Device date and time configuration.
time deviceTime
Device date and time (local time)
NtpCfg ntpCfg
NTP server configuration.
Protocol protocol
Time synchronization protocol.
ZoneCfg zoneCfg
Time zone configuration.
Event that is sent when the device time is changed.
time oldTime
Device time before change (UNIX timestamp, UTC)
time newTime
Device time after change (UNIX timestamp, UTC)
Event that is sent when the configuration changes.
Static NTP server configuration.
string server1
Primary NTP server.
string server2
Secondary NTP server.
boolean enableAutoDST
Enable automatic daylight saving time adjustment.
int id
Selected time zone id.
string name
Selected time zone name (ignored on setCfg() if id != 0)
Time zone information (see also ZoneCfg)
string name
Time zone name.
boolean hasDSTInfo
true if the time zone has daylight saving time rules
Common base for all events.