wireshark/epan/time_fmt.h
Dario Lombardo 55c68ee69c epan: use SPDX indentifiers.
Skipping dissectors dir for now.

Change-Id: I717b66bfbc7cc81b83f8c2cbc011fcad643796aa
Reviewed-on: https://code.wireshark.org/review/25694
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-02-08 19:29:45 +00:00

37 lines
1,023 B
C

/* time_fmt.h
* Definitions for various time display formats.
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef __TIME_FMT_H__
#define __TIME_FMT_H__
/*
* Resolution of a time stamp.
*/
typedef enum {
TO_STR_TIME_RES_T_SECS, /* seconds */
TO_STR_TIME_RES_T_DSECS, /* deciseconds */
TO_STR_TIME_RES_T_CSECS, /* centiseconds */
TO_STR_TIME_RES_T_MSECS, /* milliseconds */
TO_STR_TIME_RES_T_USECS, /* microseconds */
TO_STR_TIME_RES_T_NSECS /* nanoseconds */
} to_str_time_res_t;
/*
* Display format of an absolute-time time stamp.
*/
typedef enum {
/* Start at 1000 to avoid duplicating the values used in field_display_e */
ABSOLUTE_TIME_LOCAL = 1000, /* local time in our time zone, with month and day */
ABSOLUTE_TIME_UTC, /* UTC, with month and day */
ABSOLUTE_TIME_DOY_UTC /* UTC, with 1-origin day-of-year */
} absolute_time_display_e;
#endif /* __TIME_FMT_H__ */