IsDST (NotesDateTime - JavaScript™)
Read-only. Indicates whether the time reflects daylight savings.
Defined in
NotesDateTimeSyntax
isDST() : boolean
Legal value | Description |
---|---|
true |
if the current computer is set to observe daylight savings, and daylight savings is currently in effect |
false |
if the current computer is set to observe daylight
savings, but daylight savings is not currently in effect; the current
computer is not set to observe daylight savings; the NotesDateTime object
has no date component; or the NotesDateTime object
has no time component |
Usage
For remote (IIOP) operations, the current computer is the Domino® server. For local operations, the current computer is the computer on which the program is running.The convertToZone method and LocalTime property may modify the value of this property.
Examples
This computed field displays the creation date for the current database with information on the time zone and daylight savings.var dt:NotesDateTime = database.getCreated();
return "This database was created on " + dt.getLocalTime() +
" (time zone " + dt.getTimeZone().toFixed() +
(dt.isDST() ? " with" : " without") + " daylight savings)";