summaryrefslogtreecommitdiffstats
path: root/usr.bin/w/pr_time.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix cosmetic bug in time display. Current day logins are now displayeddavidn1999-11-101-4/+9
| | | | | | | as plain time as originally intended, instead of displaying DayHH times when the login time happens to be prior the GMT - TZ difference. (Only noticable on systems operating east of GMT/UTC). Local times are now used to determine the day.
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Fix the annoying bug introduced in rev 1.18 that caused each line to bepeter1999-01-101-3/+6
| | | | | | | | | | | | | | | | one character shorter than the previous in a stairstep fashion when long idle times were involved. A couple of nits: - spelling/typo fix. - some of the easier style(9) fixes where it was bothering me. - Handle 100+ days idle time (ha!). Probably the right thing to do is to do a snprintf into a buffer and strlen the result rather than doing hackery on magic numbers. XXX the wide (and mostly unused) username and tty columns annoy me since it it could be used for more useful information for the command. We should actually count the largest username and tty and adjust like 'ls -l' does.
* -Wall cleanup.alex1997-12-281-3/+3
|
* Revert some casts I introduced.charnier1997-08-261-3/+3
| | | | Requested by: Bruce.
* Typo in usage(). Err -> errx when testing allocations.charnier1997-08-251-2/+6
|
* Made sure the string formated by strftime() is properlyyokota1997-03-071-1/+2
| | | | | | | | null-terminated. Should go to RELENG_2_1 and RELENG_2_2. Reviewed by guido@freebsd.org.
* Reduce the command field width by one when idle time is > 9 days, todanny1997-02-111-1/+5
| | | | | | eliminate unsightly blank line. Possibly a 2.2 candidate.
* Fix one column wrong offset in previous change days->dayache1995-10-081-1/+1
|
* Print "1day" instead of "1days"dima1995-09-221-2/+4
|
* Delete bogus referneces to timezone code internal header file `tzfile.h',wollman1995-08-071-9/+8
| | | | which is no longer bogusly installed in /usr/include.
* Remove trailing whitespace.rgrimes1995-05-301-1/+1
|
* idle time == 0 printed now as "-" like in good old BSDache1994-09-271-0/+3
| | | | skip cua* 3 chars as tty* 3 lchars
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+104
OpenPOWER on IntegriCloud