If a files date is any time in the future (not six months or more),
use "date "+%b %e %Y"" format. This is what SUSv3 says. Ok jdolecek, dsl
This commit is contained in:
parent
0ef0b5bfc2
commit
1a12f82f4b
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: print.c,v 1.38 2003/12/26 06:19:19 grant Exp $ */
|
||||
/* $NetBSD: print.c,v 1.39 2004/08/09 20:14:54 jschauma Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993, 1994
|
||||
@ -37,7 +37,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)print.c 8.5 (Berkeley) 7/28/94";
|
||||
#else
|
||||
__RCSID("$NetBSD: print.c,v 1.38 2003/12/26 06:19:19 grant Exp $");
|
||||
__RCSID("$NetBSD: print.c,v 1.39 2004/08/09 20:14:54 jschauma Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -385,7 +385,7 @@ printtime(time_t ftime)
|
||||
if (f_sectime)
|
||||
for (i = 11; i < 24; i++)
|
||||
(void)putchar(longstring[i]);
|
||||
else if (ftime + SIXMONTHS > now && ftime - SIXMONTHS < now)
|
||||
else if (ftime + SIXMONTHS > now && ftime <= now)
|
||||
for (i = 11; i < 16; ++i)
|
||||
(void)putchar(longstring[i]);
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user