Package hw
Class DateTime

Public Method now

static DateTime now()

Throws:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Returns Description
DateTime current date and time

Returns a DateTime object which contains the year, month, day, and weekday, or hour, minute, and second at the time of the call.

Note

Example

DateTime myDateTime = IO.getDateTime();

Console.println("stored DateTime: " + myDateTime.now());

See also:

IO.getDateTime()
IO.getDate()
IO.getTime()
IO.setDate(int, int, int, int)
IO.setTime(int, int, int)
Date
Time