1. Proper formating of the man page.
2. Corrected the documentation about the possibility to omit the timestamp.
This commit is contained in:
@@ -120,9 +120,10 @@ int print_help( void ) {
|
||||
printf("%s converts a unix timestamp into a human readable date.\n",
|
||||
progname);
|
||||
printf("\n");
|
||||
printf("Usage: unixtime [-h, --help] [-V, --version] <TIMESTAMP>\n");
|
||||
printf("Usage: unixtime [<timestamp>]\n"
|
||||
" [-h, --help] [-V, --version]\n");
|
||||
printf("\n");
|
||||
printf("Where <TIMESTAMP> is the number of seconds since the Epoch\n");
|
||||
printf("Where <timestamp> is the number of seconds since the Epoch\n");
|
||||
if((p = strdup(ctime(& t))) != NULL) {
|
||||
/* ctime() return the date as string with an appended new line.
|
||||
* Since we do not want the new line to be printed, we terminate
|
||||
|
||||
Reference in New Issue
Block a user