From 8dafa6048f7a742229fb7023fa515de78156f731 Mon Sep 17 00:00:00 2001 From: etxrab Date: Mon, 4 Jul 2011 21:43:34 +0000 Subject: From Michael Mann: Added ability to display UTC time or UTC time with date. I liked having the difference between UTC and local time, not just setting local=UTC. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2629 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37898 f5534014-38df-0310-8fa8-9805f1628bb7 --- tshark.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tshark.c') diff --git a/tshark.c b/tshark.c index 1a3d761f40..5d19b2d5ec 100644 --- a/tshark.c +++ b/tshark.c @@ -1263,6 +1263,10 @@ main(int argc, char *argv[]) timestamp_set_type(TS_DELTA_DIS); else if (strcmp(optarg, "e") == 0) timestamp_set_type(TS_EPOCH); + else if (strcmp(optarg, "u") == 0) + timestamp_set_type(TS_UTC); + else if (strcmp(optarg, "ud") == 0) + timestamp_set_type(TS_UTC_WITH_DATE); else { cmdarg_err("Invalid time stamp type \"%s\"", optarg); @@ -3108,7 +3112,9 @@ print_columns(capture_file *cf) case COL_CLS_TIME: case COL_REL_TIME: case COL_ABS_TIME: - case COL_ABS_DATE_TIME: /* XXX - wider */ + case COL_ABS_DATE_TIME: + case COL_UTC_TIME: + case COL_UTC_DATE_TIME: /* XXX - wider */ column_len = strlen(cf->cinfo.col_data[i]); if (column_len < 10) column_len = 10; -- cgit v1.2.3