Actions
Feature #8082
closedlast(1) should be able to print years in output
Start date:
2017-04-19
Due date:
% Done:
100%
Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage
Gerrit CR:
External Bug:
Description
The last(1) command just prints short dates and omits seconds in the output. There should be a command line switch that enables a longer output.
(604) oldn90700:/home/olbohlen$ last | head olbohlen vt/2 :0 Wed Apr 19 08:12 still logged in reboot system boot Wed Apr 19 08:05 reboot system down Tue Apr 18 13:27 olbohlen vt/2 :0 Tue Apr 18 08:03 - 13:25 (05:22) reboot system boot Tue Apr 18 07:51
vs.
(607) oldn90700:/home/olbohlen/git/illumos-gate/usr/src/cmd/last$ ./newlast | head olbohlen vt/2 :0 Wed Apr 19 08:12:43 2017 still logged in reboot system boot Wed Apr 19 08:05:10 2017 reboot system down Tue Apr 18 13:27:18 2017 olbohlen vt/2 :0 Tue Apr 18 08:03:09 2017 - 13:25:57 (05:22:48) reboot system boot Tue Apr 18 07:51:33 2017 reboot system down Thu Apr 13 23:11:42 2017
Updated by Olaf Bohlen almost 6 years ago
- % Done changed from 40 to 90
Updated by Electric Monk over 5 years ago
- Status changed from In Progress to Closed
- % Done changed from 90 to 100
git commit 299c9e70a71f87365f8f88fdea2cccbd0d5b8db6
commit 299c9e70a71f87365f8f88fdea2cccbd0d5b8db6 Author: Olaf Bohlen <olbohlen@eenfach.de> Date: 2017-06-21T20:19:30.000Z 8082 last(1) should be able to print years in output Reviewed by: Adam Števko <adam.stevko@gmail.com> Reviewed by: Toomas Soome <tsoome@me.com> Approved by: Robert Mustacchi <rm@joyent.com>
Actions