Print this page
4378 Clean up %C in *time() functions
438 need documentation for strftime %s flag
@@ -18,10 +18,12 @@
*
* CDDL HEADER END
*/
/*
+ * Copyright (c) 2014 Gary Mills
+ *
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#include <limits.h>
@@ -170,11 +172,11 @@
case FDISP_Time:
{
char buffer[PATH_MAX];
time_t time;
time = (time_t)lldata;
- (void) strftime(buffer, PATH_MAX, "%C",
+ (void) strftime(buffer, PATH_MAX, "%+",
localtime(&time));
(void) printf("%s", buffer);
return;
}
}