ZoneTime (NotesDateTime - JavaScript™)
Read-only. A string representation of the time adjusted for changes to the time zone and daylight savings.
Defined in
NotesDateTimeSyntax
getZoneTime() : string Usage
InitiallyZoneTime is
the same as LocalTime.
If you use the convertToZone method
or LocalTime,
changes to TimeZone and IsDST are reflected in ZoneTime,
but LocalTime stays
the same.Examples
This button converts the current time to all time zones.var dt:NotesDateTime = session.createDateTime("Today 06:00");
dt.setNow();
requestScope.status = "Zone\tTime";
for (var i = -12; i <= 12; i++) {
dt.convertToZone(i, dt.isDST());
requestScope.status += "\n" +
dt.getTimeZone() + "\t\t" + dt.getZoneTime();
}