summary |
tags |
clone url |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
c63e963)
SCCS-vsn: lib/libc/gen/ctime.c 5.18
SCCS-vsn: lib/libc/gen/ctime.3 6.11
.\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
.\"
.\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
.\"
-.\" @(#)ctime.3 6.10 (Berkeley) %G%
+.\" @(#)ctime.3 6.11 (Berkeley) %G%
.\"
.TH CTIME 3 ""
.SH NAME
.\"
.TH CTIME 3 ""
.SH NAME
environment variable does not specify a
.IR tzfile (5)-format
and cannot be interpreted as a direct specification,
environment variable does not specify a
.IR tzfile (5)-format
and cannot be interpreted as a direct specification,
-UTC is used with the standard time abbreviation set to
-the value of the
-.B TZ
-environment variable
-(or to the leading characters of its value if it is lengthy).
.PP
.I Tzsetwall
sets things up so that
.PP
.I Tzsetwall
sets things up so that
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)ctime.c 5.17 (Berkeley) %G%";
+static char sccsid[] = "@(#)ctime.c 5.18 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
/*
#endif /* LIBC_SCCS and not lint */
/*
return -1;
}
if (*name == '\0')
return -1;
}
if (*name == '\0')
else {
name = getoffset(name, &stdoffset);
if (name == NULL)
else {
name = getoffset(name, &stdoffset);
if (name == NULL)
(void) strcpy(lclptr->chars, GMT);
} else if (tzload(name, lclptr) != 0)
if (name[0] == ':' || tzparse(name, lclptr, FALSE) != 0)
(void) strcpy(lclptr->chars, GMT);
} else if (tzload(name, lclptr) != 0)
if (name[0] == ':' || tzparse(name, lclptr, FALSE) != 0)
- (void) tzparse(name, lclptr, TRUE);
+ (void) gmtload(lclptr);