Package hw
Class IO

Public Method getDateTime

static DateTime getDateTime()

Throws:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Returns Description
static DateTime date and time of the real-time clock

The getDateTime() method returns the year, the month, the day, the hour, the minute, and the second in one string ("year/month/day hout:minute:second").

Note

Example

DateTime date = IO.getDateTime();

String date   = dateTime.getDate().toString();

String time   = dateTime.getTime().toString();

Alternatively a value can be optained with a single call:

String dateTime = IO.getDateTime().toString();

See also:

IO.getDate()
IO.getTime()
IO.setDate(int, int, int, int)
IO.setTime(int, int, int)