Deleted Added
full compact
misc.c (8164) misc.c (8857)
1/* Copyright 1988,1990,1993,1994 by Paul Vixie
2 * All rights reserved
3 *
4 * Distribute freely, except: don't remove my name from the source or
5 * documentation (don't take credit for my work), mark your changes (don't
6 * get me blamed for your possible bugs), don't alter or remove this
7 * notice. May be sold if buildable source is provided to buyer. No
8 * warrantee of any kind, express or implied, is included with this
9 * software; use at your own risk, responsibility for damages (if any) to
10 * anyone resulting from the use of this software rests entirely with the
11 * user.
12 *
13 * Send bug reports, bug fixes, enhancements, requests, flames, etc., and
14 * I'll try to keep a version up to date. I can be reached as follows:
15 * Paul Vixie <paul@vix.com> uunet!decwrl!vixie!paul
16 */
17
18#if !defined(lint) && !defined(LINT)
1/* Copyright 1988,1990,1993,1994 by Paul Vixie
2 * All rights reserved
3 *
4 * Distribute freely, except: don't remove my name from the source or
5 * documentation (don't take credit for my work), mark your changes (don't
6 * get me blamed for your possible bugs), don't alter or remove this
7 * notice. May be sold if buildable source is provided to buyer. No
8 * warrantee of any kind, express or implied, is included with this
9 * software; use at your own risk, responsibility for damages (if any) to
10 * anyone resulting from the use of this software rests entirely with the
11 * user.
12 *
13 * Send bug reports, bug fixes, enhancements, requests, flames, etc., and
14 * I'll try to keep a version up to date. I can be reached as follows:
15 * Paul Vixie <paul@vix.com> uunet!decwrl!vixie!paul
16 */
17
18#if !defined(lint) && !defined(LINT)
19static char rcsid[] = "$Id: misc.c,v 1.1.1.1 1994/08/27 13:43:02 jkh Exp $";
19static char rcsid[] = "$Id: misc.c,v 1.2 1995/04/29 13:25:13 ache Exp $";
20#endif
21
22/* vix 26jan87 [RCS has the rest of the log]
23 * vix 30dec86 [written]
24 */
25
26
27#include "cron.h"

--- 606 unchanged lines hidden (view full) ---

634 */
635char *
636arpadate(clock)
637 time_t *clock;
638{
639 time_t t = clock ?*clock :time(0L);
640 struct tm *tm = localtime(&t);
641 static char ret[30]; /* zone name might be >3 chars */
20#endif
21
22/* vix 26jan87 [RCS has the rest of the log]
23 * vix 30dec86 [written]
24 */
25
26
27#include "cron.h"

--- 606 unchanged lines hidden (view full) ---

634 */
635char *
636arpadate(clock)
637 time_t *clock;
638{
639 time_t t = clock ?*clock :time(0L);
640 struct tm *tm = localtime(&t);
641 static char ret[30]; /* zone name might be >3 chars */
642
642
643 (void) sprintf(ret, "%s, %2d %s %2d %02d:%02d:%02d %s",
644 DowNames[tm->tm_wday],
645 tm->tm_mday,
646 MonthNames[tm->tm_mon],
647 tm->tm_year,
648 tm->tm_hour,
649 tm->tm_min,
650 tm->tm_sec,

--- 14 unchanged lines hidden ---
643 (void) sprintf(ret, "%s, %2d %s %2d %02d:%02d:%02d %s",
644 DowNames[tm->tm_wday],
645 tm->tm_mday,
646 MonthNames[tm->tm_mon],
647 tm->tm_year,
648 tm->tm_hour,
649 tm->tm_min,
650 tm->tm_sec,

--- 14 unchanged lines hidden ---