summaryrefslogtreecommitdiff
path: root/usr/src/lib/libc/port/gen/cftime.c
diff options
context:
space:
mode:
authorGary Mills <gary_mills@fastmail.fm>2014-01-03 12:54:12 -0600
committerDan McDonald <danmcd@omniti.com>2014-01-08 14:53:56 +0000
commitee169c7e77bc5d28a401dde8533cbd38afd24ae1 (patch)
treefc299688835244cb4016798b5de904449a039bce /usr/src/lib/libc/port/gen/cftime.c
parent2063d9c01c4a721994a3cb528444d7f328135869 (diff)
downloadillumos-joyent-ee169c7e77bc5d28a401dde8533cbd38afd24ae1.tar.gz
4378 Clean up %C in *time() functions
438 need documentation for strftime %s flag Reviewed by: Garrett D'Amore <garrett@damore.org> Approved by: Dan McDonald <danmcd@omniti.com>
Diffstat (limited to 'usr/src/lib/libc/port/gen/cftime.c')
-rw-r--r--usr/src/lib/libc/port/gen/cftime.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/src/lib/libc/port/gen/cftime.c b/usr/src/lib/libc/port/gen/cftime.c
index f4fa872da8..be0a67c75d 100644
--- a/usr/src/lib/libc/port/gen/cftime.c
+++ b/usr/src/lib/libc/port/gen/cftime.c
@@ -20,6 +20,8 @@
*/
/*
+ * Copyright (c) 2014 Gary Mills
+ *
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -27,8 +29,6 @@
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/*
* This routine converts time as follows. The epoch is 0000 Jan 1
* 1970 GMT. The argument time is in seconds since then. The
@@ -91,7 +91,7 @@ ascftime(char *buf, const char *format, const struct tm *tm)
/* Set format string, if not already set */
if (format == NULL || *format == '\0')
if (((format = getenv("CFTIME")) == 0) || *format == 0)
- format = "%C";
+ format = "%+";
return ((int)strftime(buf, LONG_MAX, format, tm));
}