mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Add "epoch" timestamp option
Add an option that prints the timestamp as the number of seconds since the Unix epoch.
This commit is contained in:
parent
cdc773100c
commit
f47467271f
6 changed files with 23 additions and 1 deletions
|
|
@ -1079,6 +1079,9 @@ void handle_command_sequence(char input_char, char *output_char, bool *forward)
|
|||
case TIMESTAMP_ISO8601:
|
||||
tio_printf("Switched timestamp mode to iso8601");
|
||||
break;
|
||||
case TIMESTAMP_EPOCH:
|
||||
tio_printf("Switched timestamp mode to epoch");
|
||||
break;
|
||||
case TIMESTAMP_END:
|
||||
option.timestamp = TIMESTAMP_NONE;
|
||||
tio_printf("Switched timestamp mode off");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue