Package hw
Class IO

Public Method setDate

static void setDate(int year, int month, int day, int weekday)

Throws:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Parameter Range Description
year 0 ... 99 year 2000 ... 2099
month 1 ... 12 month
day 1 ... 31 day
weekday 0 ... 6 weekday as numerical representation

The setDate() method sets the date of the real-time clock.

Note

Example

IO.setDate(16, 3, 15, 4);

Sets the date to march 15th, 2016 and assigns 4 to the weekday.

See also:

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