C API for BALTECH SDK

§ brp_Rtc_SetTime()

brp_errcode brp_Rtc_SetTime ( brp_protocol  protocol,
unsigned  ClockId,
unsigned  Now 
)

Set the time of the on-board RTC.

Parameters
[in]protocolused to execute the command
[in]ClockIdIndex of clock to set.
[in]NowWhen Now is an integer, its value represents the seconds since 1.1.1970-00:00:00 GMT (UNIX Time). When Now is a datetime() object, it must be set to the local time, not the UTC (or GMT) time. This is due to the fact that the mktime() function is used internally, transforming the local time into UNIX Time.