Print this page
4378 Clean up %C in *time() functions
438 need documentation for strftime %s flag
@@ -18,19 +18,19 @@
*
* CDDL HEADER END
*/
/*
+ * Copyright (c) 2014 Gary Mills
+ *
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*
*/
/* $Id: attribute.c 157 2006-04-26 15:07:55Z ktou $ */
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/*LINTLIBRARY*/
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
@@ -955,11 +955,11 @@
struct tm *tm = localtime(&values[i]->datetime);
if (tm != NULL) {
char string[64];
- strftime(string, sizeof (string), "%C", tm);
+ strftime(string, sizeof (string), "%c", tm);
rc = strlcat(buffer, string, buflen);
}}
break;
case PAPI_COLLECTION: {
char *string = alloca(buflen);