datetime.h
来自「T-kernel 的extension源代码」· C头文件 代码 · 共 56 行
H
56 行
/* *---------------------------------------------------------------------- * 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. * *---------------------------------------------------------------------- *//* * datetime.h * * Time library */#ifndef __EXTENSION_DATETIME_H__#define __EXTENSION_DATETIME_H__#include <basic.h>#include "clk.h"#ifdef __cplusplusextern "C" {#endif/* * Conversion between calendar dates and total number of seconds */IMPORT void DATEtoTIME( STIME *time, DATE_TIM *date );IMPORT void TIMEtoDATE( DATE_TIM *date, STIME time );/* * Local time correction */Inline STIME GMTtoLT( STIME time, TIMEZONE *tz ){ return time - tz->adjust + (( tz->dst_flg != 0 )? tz->dst_adj * 60: 0);}Inline STIME LTtoGMT( STIME time, TIMEZONE *tz ){ return time + tz->adjust - (( tz->dst_flg != 0 )? tz->dst_adj * 60: 0);}#ifdef __cplusplus}#endif#endif /* __EXTENSION_DATETIME_H__ */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?