Since the login and logout times are stored with a precision of microseconds, and remote usage (short-duration sessions) is becoming more and more common, the last command output should be made more user-friendly by increasing the duration precision from minutes to seconds. For example, before:
foobar pts/8 123.45.67.89 Wed Oct 29 10:38 - 10:39 (00:00)
and after:
foobar pts/8 123.45.67.89 Wed Oct 29 10:38 - 10:39 (00:00:55)
If backward compatibility is a concern, it could be arranged that when the tool is invoked as last, it uses the old method (precision in minutes), otherwise it uses the improved method.
Since the login and logout times are stored with a precision of microseconds, and remote usage (short-duration sessions) is becoming more and more common, the
lastcommand output should be made more user-friendly by increasing the duration precision from minutes to seconds. For example, before:and after:
If backward compatibility is a concern, it could be arranged that when the tool is invoked as
last, it uses the old method (precision in minutes), otherwise it uses the improved method.