| Wireshark 4.7.0 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
ws_strptime.h
Go to the documentation of this file.
1
10#ifndef __WS_STRPTIME_H__
11#define __WS_STRPTIME_H__
12
13#include <wireshark.h>
14#include <time.h>
15
16#ifdef __cplusplus
17 extern "C" {
18#endif /* __cplusplus */
19
32 struct ws_timezone {
33 long tm_gmtoff;
34 const char *tm_zone;
35};
36
37
53WS_DLL_PUBLIC
54 char *
55 ws_strptime(const char *buf, const char *format, struct tm *tm,
56 struct ws_timezone *zonep);
57
70WS_DLL_PUBLIC
71 char *
72 ws_strptime_p(const char *buf, const char *format, struct tm *tm);
73
74#ifdef __cplusplus
75}
76#endif /* __cplusplus */
77
78#endif /* __WS_STRPTIME_H__ */
ws_timezone
Portable representation of timezone offset and name.
Definition ws_strptime.h:32
ws_strptime
WS_DLL_PUBLIC char * ws_strptime(const char *buf, const char *format, struct tm *tm, struct ws_timezone *zonep)
Parse a date/time string using NetBSD's strptime() with the "C" locale.
Definition ws_strptime.c:309
ws_strptime_p
WS_DLL_PUBLIC char * ws_strptime_p(const char *buf, const char *format, struct tm *tm)
Portable wrapper around the system's strptime().
Definition ws_strptime.c:299