JAVA/CORBA CLASSES


setNow method
Example

Sets the value of a date-time to now (today's date and current time).

Defined in

DateTime

Syntax

public void setNow()
   throws NotesException

Usage

For remote (IIOP) operations, the date-time value is based on the host computer. For local operations, the date-time value is based on the computer on which the program is running.

This method works by taking a snapshot of the current date-time at the moment that the method is executed. After the method executes, the value of the DateTime object does not update itself to always reflect the current date-time. Its value only changes if you change it explicitly.

Language cross-reference

SetNow method in LotusScript NotesDateTime class

@Today function in formula language

Example
See Also