diff options
author | Guy Harris <guy@alum.mit.edu> | 2010-02-27 19:01:27 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2010-02-27 19:01:27 +0000 |
commit | 500eb99cd9ae9503344998b811e4856a2bb6bfb2 (patch) | |
tree | f1ed4387361e37904198aac2f5e80833d74011b0 /epan/dissectors/packet-mms.c | |
parent | 9dd11bb90eb4bca3f03f0f547da9be901a56f996 (diff) |
Add a third date format, ABSOLUTE_TIME_DOY_UTC, to show UTC with the
date as YYYY/DDD, where DDD is a 1-origin day of year. Move the formats
to a "time_fmt.h" file, included by the headers that use it. Have
abs_time_to_str() and abs_time_secs_to_str() take the date format value,
rather than a Boolean "show this as UTC" flag, as an argument. Document
the ABSOLUTE_TIME_ formats a bit better. Use that format in the CCSDS
and VCDU dissectors, rather than having those dissectors do the
formatting themselves.
svn path=/trunk/; revision=32034
Diffstat (limited to 'epan/dissectors/packet-mms.c')
-rw-r--r-- | epan/dissectors/packet-mms.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-mms.c b/epan/dissectors/packet-mms.c index 57c9975e1d..223dc8eb98 100644 --- a/epan/dissectors/packet-mms.c +++ b/epan/dissectors/packet-mms.c @@ -1868,7 +1868,7 @@ dissect_mms_TimeOfDay(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _ ts.secs = (days + 5113) * 86400 + milliseconds / 1000; ts.nsecs = (milliseconds % 1000) * G_GINT64_CONSTANT(1000000U); - ptime = abs_time_to_str(&ts, TRUE); + ptime = abs_time_to_str(&ts, ABSOLUTE_TIME_UTC); if(hf_index >= 0) { proto_tree_add_string(tree, hf_index, tvb, offset, len, ptime); @@ -1951,7 +1951,7 @@ dissect_mms_UtcTime(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_ ts.secs = seconds; ts.nsecs = nanoseconds; - ptime = abs_time_to_str(&ts, TRUE); + ptime = abs_time_to_str(&ts, ABSOLUTE_TIME_UTC); if(hf_index >= 0) { |