📄 datetime.h
字号:
/*Copyright (C) 2006 Adam CharrettThis program is free software; you can redistribute it and/ormodify it under the terms of the GNU General Public Licenseas published by the Free Software Foundation; either version 2of the License, or (at your option) any later version.This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with this program; if not, write to the Free SoftwareFoundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USAdatetime.hDate and Time decoding functions.*/#ifndef _DATETIME_H#define _DATETIME_Htypedef struct dvbpsi_date_time_s{ int i_year; /*!< Year in UTC */ int i_month; /*!< Month in UTC */ int i_day; /*!< Day in UTC */ int i_hour; /*!< Hour in UTC */ int i_minute;/*!< Minute in UTC */ int i_second;/*!< Second in UTC */}dvbpsi_date_time_t;/***************************************************************************** * dvbpsi_DecodeMJDUTC *****************************************************************************//*! * \fn void dvbpsi_DecodeMJDUTC(char *p_mjdutc, int *p_year, int *p_month, int *p_day, int *p_hour, int *p_minute, int *p_second) * \brief Decode date/time encoded in MJD UTC format into its constituent parts. * \param p_mjdutc pointer to MJD UTC encoded date time. * \param p_year Integer to store the decoded year in. * \param p_month Integer to store the decoded month in. * \param p_day Integer to store the decoded day in. * \param p_hour Integer to store the decoded hour in. * \param p_minute Integer to store the decoded minute in. * \param p_second Integer to store the decoded second in. */void dvbpsi_DecodeMJDUTC(uint8_t *p_mjdutc, dvbpsi_date_time_t *p_date_time);#endif /*_DATETIME_H*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -