2 * Definitions for various time display formats.
4 * Wireshark - Network traffic analyzer
5 * By Gerald Combs <gerald@wireshark.org>
6 * Copyright 1998 Gerald Combs
8 * SPDX-License-Identifier: GPL-2.0-or-later
11 #ifndef __TIME_FMT_H__
12 #define __TIME_FMT_H__
15 * Resolution of a time stamp.
18 TO_STR_TIME_RES_T_SECS, /* seconds */
19 TO_STR_TIME_RES_T_DSECS, /* deciseconds */
20 TO_STR_TIME_RES_T_CSECS, /* centiseconds */
21 TO_STR_TIME_RES_T_MSECS, /* milliseconds */
22 TO_STR_TIME_RES_T_USECS, /* microseconds */
23 TO_STR_TIME_RES_T_NSECS /* nanoseconds */
27 * Display format of an absolute-time time stamp.
30 /* Start at 1000 to avoid duplicating the values used in field_display_e */
31 ABSOLUTE_TIME_LOCAL = 1000, /* local time in our time zone, with month and day */
32 ABSOLUTE_TIME_UTC, /* UTC, with month and day */
33 ABSOLUTE_TIME_DOY_UTC /* UTC, with 1-origin day-of-year */
34 } absolute_time_display_e;
36 #endif /* __TIME_FMT_H__ */