3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 1998 Gerald Combs
7 * SPDX-License-Identifier: GPL-2.0-or-later
10 #ifndef __WS_STRPTIME_H__
11 #define __WS_STRPTIME_H__
13 #include <wireshark.h>
18 #endif /* __cplusplus */
20 /* Struct to pass the "tm_gmtoff" and "tm_zone" fields, for systems whose
21 * libc struct tm type lacks these non-standard extensions. */
28 * This is the NetBSD strptime(), modified to always use the "C" locale.
32 ws_strptime(const char *buf
, const char *format
, struct tm
*tm
,
33 struct ws_timezone
*zonep
);
36 * Portability wrapper around the system's strptime().
40 ws_strptime_p(const char *buf
, const char *format
, struct tm
*tm
);
44 #endif /* __cplusplus */
46 #endif /* __WS_STRPTIME_H__ */