📄 date.h
字号:
/* $Id: date.h,v 1.3.6.1 2005/04/06 09:28:22 jonas Exp $ */#ifndef EL__PROTOCOL_DATE_H#define EL__PROTOCOL_DATE_H#include "util/ttime.h"/* Parses YY and YYYY style years. Returns year value ready for tm.tm_year and * move @date pointer after the year if successful else returns -1. */int parse_year(const unsigned char **date, unsigned char *end);/* Return 0 for January, 11 for december, -1 for failure. Updates buf pointer on * success. */int parse_month(const unsigned char **buf, unsigned char *end);/* Return day number. Updates string pointer on success. */int parse_day(const unsigned char **date, unsigned char *end);/* Expects HH:MM[:SS] or HH:MM[P|A]M, with HH <= 23, MM <= 59, SS <= 59. * Updates tm, updates time on success and returns 0 on failure, otherwise 1. */int parse_time(const unsigned char **time, struct tm *tm, unsigned char *end);/* Parses the following date formats: * * Sun, 06 Nov 1994 08:49:37 GMT ; RFC 822, updated by RFC 1123 * Sunday, 06-Nov-94 08:49:37 GMT ; RFC 850, obsoleted by RFC 1036 * Sun Nov 6 08:49:37 1994 ; ANSI C's asctime() format */ttime parse_date(unsigned char **date_pos, unsigned char *end, int update_pos, int skip_week_day);#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -