NotesDateTime
Properties
| Name | Description |
|---|---|
| DateOnly | Read-only. A string representing the date part of a date-time, in the local time zone. |
| GMTTime | Read-only. A string representing a date-time, converted to Greenwich Mean Time (timezone 0). |
| IsDST (NotesDateTime) | Read-only. Indicates whether the time reflects daylight-saving time. |
| IsValidDate | Read-only. Indicates whether the string that is used to create the NotesDateTime object is valid. |
| LocalTime | Read-write. A string representing a date-time, in the local time zone. |
| LSGMTTime | Read-only. A LotusScript® variant representing a date-time, converted to Greenwich Mean Time (timezone 0). |
| LSLocalTime | Read-write. A LotusScript® variant representing a date-time, in the local time zone. |
| Parent (NotesDateTime) | Read-only. The session that contains a DateTime object. |
| TimeOnly | Read-only. A string representing the time part of a date-time, in the local time zone. |
| TimeZone (NotesDateTime) | Read-only. An integer representing the time zone of a date-time. In many cases, but not all, this integer indicates the number of hours which must be… |
| ZoneTime | Read-only. A string representation of the time adjusted for the TimeZone and IsDST properties. |
Methods
| Name | Description |
|---|---|
| AdjustDay | Increments a date-time by the number of days you specify. |
| AdjustHour | Increments a date-time by the number of hours you specify. |
| AdjustMinute | Increments a date-time by the number of minutes you specify. |
| AdjustMonth | Increments a date-time by the number of months you specify. |
| AdjustSecond | Increments a date-time by the number of seconds you specify. |
| AdjustYear | Increments a date-time by the number of years you specify. |
| ConvertToZone | Changes the TimeZone and IsDST properties as specified. |
| SetAnyDate | Sets the date component to a wildcard value, which means that it matches any date. The time component is unaffected. |
| SetAnyTime | Sets the time component to a wildcard value, which means that it matches any time. The date component is unaffected. |
| SetNow | Sets the value of a date-time to now (today's date and current time). |
| TimeDifference | Finds the difference in seconds between one date-time and another. |
| TimeDifferenceDouble | Finds the difference in seconds between one date-time and another. |
Examples
| Name | Description |
|---|---|
| Examples: DateOnly property | This script displays the current date and time on two lines. |
| Examples: GMTTime property | 1. This script displays the value of the GMTTime property. |
| Examples: IsDST property | This script creates a NotesDateTime object, sets it to today's date and time, and checks whether daylight-saving time is currently in effect or not. |
| Examples: LocalTime property | 1. This script displays the value of the LSLocalTime property, which equals "04/16/96 05:36:00 PM," regardless of the computer's time zone setting. |
| Examples: Parent property (NotesDateTime) | This Visual Basic code displays the parent user name of a NotesDateTime object. |