diff options
author | etxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-07-04 21:43:34 +0000 |
---|---|---|
committer | etxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-07-04 21:43:34 +0000 |
commit | 8dafa6048f7a742229fb7023fa515de78156f731 (patch) | |
tree | 48ae1991be5f20fc1b47e42036a09bc0a79f2717 /tshark.c | |
parent | 914f5bed1a67829ff5ec9100f4935f95fbeff707 (diff) |
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
Diffstat (limited to 'tshark.c')
-rw-r--r-- | tshark.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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; |