ADwin-Gold II
, Manual February 2013
187
Real-time clock
RTC_Get
ADwin
RTC_Get
RTC_Get
returns date and time from the real-time clock.
Syntax
#Include
ADwinGoldII.inc / GoldIITiCo.inc
RTC_Get
(
year
,
month
,
day
,
hour
,
minute
,
second
)
Parameter
Notes
All parameters are return values; thus, you have to use variables as pa-
rameters.
See also
Valid for
Gold II-Storage
Example
#Include
ADwinGoldII.inc
Dim
year
,
mon
,
day
,
h
,
m
,
s
As
Long
Init:
Rem read real-time clock
RTC_Get
(
year
,
mon
,
day
,
h
,
m
,
s
)
T11 TiCo
year
Year (0…99), corresponds to 2000…2099.
LONG
month
Month (1…12).
LONG
day
Day (1…31); valid value ranges according to
month and leap year.
LONG
hour
Hour (0…23).
LONG
minute
Minute (0…59).
LONG
second
Second (0…59).
LONG