Lines Matching refs:time
2 * rtc and date/time utility functions
51 void rtc_time_to_tm(unsigned long time, struct rtc_time *tm)
56 days = time / 86400;
57 time -= (unsigned int) days * 86400;
84 tm->tm_hour = time / 3600;
85 time -= tm->tm_hour * 3600;
86 tm->tm_min = time / 60;
87 tm->tm_sec = time - tm->tm_min * 60;
92 * Does the rtc_time represent a valid date/time?
112 int rtc_tm_to_time(struct rtc_time *tm, unsigned long *time)
114 *time = mktime(tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday,