aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/main.c
diff options
context:
space:
mode:
authorsfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7>2006-12-05 03:19:51 +0000
committersfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7>2006-12-05 03:19:51 +0000
commit649856e30c8dc79c61f23cfa9932080b1bf6ad8e (patch)
tree66912a037dc8a2b4910cfa0fdc8b9d85f01e1c2b /gtk/main.c
parentb46f8d68662585f9a0ed1fd3d93e31308ff5cacd (diff)
From Douglas Pratley with trivial changes and documentation changes
by myself: Corrected patch; epan/column.c and epan/column_utils.c were not included. This one has now been properly tested against a clean checkout of today's code. - New menu option available under view\time display format - New sub-option (e) to -t switch for both wireshark and tshark - Extended recent settings code to handle new value - Did NOT add new explicit epoch time column git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20040 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/main.c')
-rw-r--r--gtk/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/main.c b/gtk/main.c
index 736a997a5e..08905fb5d2 100644
--- a/gtk/main.c
+++ b/gtk/main.c
@@ -1243,7 +1243,7 @@ print_usage(gboolean print_ver) {
fprintf(output, "User interface:\n");
fprintf(output, " -g <packet number> go to specified packet number after \"-r\"\n");
fprintf(output, " -m <font> set the font name used for most text\n");
- fprintf(output, " -t ad|a|r|d output format of time stamps (def: r: rel. to first)\n");
+ fprintf(output, " -t ad|a|r|d|e output format of time stamps (def: r: rel. to first)\n");
fprintf(output, " -X <key>:<value> eXtension options, see man page for details\n");
fprintf(output, " -z <statistics> show various statistics, see man page for details\n");
@@ -2622,6 +2622,8 @@ main(int argc, char *argv[])
timestamp_set_type(TS_ABSOLUTE_WITH_DATE);
else if (strcmp(optarg, "d") == 0)
timestamp_set_type(TS_DELTA);
+ else if (strcmp(optarg, "e") == 0)
+ timestamp_set_type(TS_EPOCH);
else {
cmdarg_err("Invalid time stamp type \"%s\"", optarg);
cmdarg_err_cont("It must be \"r\" for relative, \"a\" for absolute,");