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:
Copyright © demmel products gmbh. All rights reserved.