diff options
author | Guy Harris <guy@alum.mit.edu> | 2010-05-21 06:33:25 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2010-05-21 06:33:25 +0000 |
commit | 927b7da34668bc9c0b2dd4c339e45278fd109c77 (patch) | |
tree | 7017587d5ae078490ee9b3be8ec6551e7df71d13 /epan/to_str.h | |
parent | 4dcaf67f37f89d699a42089001f04c5daf9558e2 (diff) |
Have abs_time_to_str() and abs_time_to_str_secs() take an additional
argument indicating whether to include the time zone in the string. If
we're constructing a display filter, don't include the time zone,
otherwise do. Fixes bug 4756.
svn path=/trunk/; revision=32913
Diffstat (limited to 'epan/to_str.h')
-rw-r--r-- | epan/to_str.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/epan/to_str.h b/epan/to_str.h index ab42c03ade..d1bb65f47c 100644 --- a/epan/to_str.h +++ b/epan/to_str.h @@ -62,8 +62,10 @@ extern gchar* vines_addr_to_str(const guint8 *addrp); extern gchar* time_secs_to_str(const gint32 time_val); extern gchar* time_secs_to_str_unsigned(const guint32); extern gchar* time_msecs_to_str(gint32 time_val); -extern gchar* abs_time_to_str(const nstime_t*, const absolute_time_display_e fmt); -extern gchar* abs_time_secs_to_str(const time_t, const absolute_time_display_e fmt); +extern gchar* abs_time_to_str(const nstime_t*, const absolute_time_display_e fmt, + gboolean show_zone); +extern gchar* abs_time_secs_to_str(const time_t, const absolute_time_display_e fmt, + gboolean show_zone); extern void display_signed_time(gchar *, int, const gint32, gint32, const to_str_time_res_t); extern void display_epoch_time(gchar *, int, const time_t, gint32, const to_str_time_res_t); |