mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-10 12:16:48 +00:00
20 lines
325 B
C
20 lines
325 B
C
#pragma once
|
|
#include <common/glib.h>
|
|
struct time
|
|
{
|
|
int second;
|
|
int minute;
|
|
int hour;
|
|
int day;
|
|
int month;
|
|
int year;
|
|
};
|
|
|
|
/**
|
|
* @brief 从主板cmos中获取时间
|
|
*
|
|
* @param t time结构体
|
|
* @return int 成功则为0
|
|
*/
|
|
int rtc_get_cmos_time(struct time*t);
|
|
int get_cmos_time(struct time *time); |