]>
cloudbase.mooo.com Git - z180-stamp.git/blob - include/rtc.h
3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 * SPDX-License-Identifier: GPL-2.0+
9 * Generic RTC interface.
16 * The struct used to pass data from the generic interface code to
17 * the hardware dependend low-level code ande vice versa. Identical
18 * to struct rtc_time used by the Linux kernel.
20 * Note that there are small but significant differences to the
21 * common "struct time":
23 * struct time: struct rtc_time:
24 * tm_mon 0 ... 11 1 ... 12
25 * tm_year years since 1900 years since 0
40 int rtc_get (struct rtc_time
*);
41 int rtc_set (struct rtc_time
*);
43 void GregorianDay (struct rtc_time
*);
44 void to_tm (unsigned long, struct rtc_time
*);
45 unsigned long mktime (unsigned int, unsigned int, unsigned int,
46 unsigned int, unsigned int, unsigned int);