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:
Steve Marple 2024-08-23 12:11:05 +01:00 committed by Martin Lund
parent cdc773100c
commit f47467271f
6 changed files with 23 additions and 1 deletions

View file

@ -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");