📄 clk.h
字号:
/* *---------------------------------------------------------------------- * T-Kernel / Standard Extension * * Copyright (C) 2006 by Ken Sakamura. All rights reserved. * T-Kernel / Standard Extension is distributed * under the T-License for T-Kernel / Standard Extension. *---------------------------------------------------------------------- * * Version: 1.00.00 * Released by T-Engine Forum(http://www.t-engine.org) at 2006/8/11. * *---------------------------------------------------------------------- *//* * clk.h (extension) * * Time management */#ifndef __EXTENSION_CLK_H__#define __EXTENSION_CLK_H__#include <basic.h>#include "typedef.h"#ifdef __cplusplusextern "C" {#endif/* Definitions of time correction data */typedef struct { W adjust; /* Time difference from system time (sec) */ W dst_flg; /* Type of DST applied */ W dst_adj; /* DST adjusted time (min) */} TIMEZONE;/* Calendar date & time definitions */#ifndef __date_tim__#define __date_tim__typedef struct { W d_year; /* Offset from 1900 (85 -) */ W d_month; /* Month (1 - 12, 0) */ W d_day; /* Day (1 - 31) */ W d_hour; /* Hour (0 - 23) */ W d_min; /* Minute (0 - 59) */ W d_sec; /* Second (0 - 59) */ W d_week; /* Week (1 - 54) */ W d_wday; /* Day of week ( 0 - 6; 0 is Sunday) */ W d_days; /* Day (1 - 366) */} DATE_TIM;#endif /* __date_tim__ *//* * Definitions for automatic generation of interface library (mkiflib) *//*** DEFINE_IFLIB[INCLUDE FILE]<extension/clk.h>[PREFIX]CM***//* * Time management system call *//* [BEGIN SYSCALLS] */IMPORT ER tkse_get_tim2(STIME *time, TIMEZONE *tz);IMPORT ER tkse_set_tim2(STIME time, TIMEZONE *tz);IMPORT ER tkse_get_tod(DATE_TIM *date_tim, STIME time, BOOL local);IMPORT ER tkse_set_tod(DATE_TIM *date_tim, STIME *time, BOOL local);IMPORT ER tkse_set_tim(SYSTIM *pk_tim);IMPORT ER tkse_get_tim(SYSTIM *pk_tim);IMPORT ER tkse_get_otm(SYSTIM *pk_tim);/* [END SYSCALLS] */#ifdef __cplusplus}#endif#endif /* __EXTENSION_CLK_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -