Print this page
4378 Clean up %C in *time() functions
438 need documentation for strftime %s flag

*** 18,27 **** --- 18,29 ---- * * 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,180 **** case FDISP_Time: { char buffer[PATH_MAX]; time_t time; time = (time_t)lldata; ! (void) strftime(buffer, PATH_MAX, "%C", localtime(&time)); (void) printf("%s", buffer); return; } } --- 172,182 ---- case FDISP_Time: { char buffer[PATH_MAX]; time_t time; time = (time_t)lldata; ! (void) strftime(buffer, PATH_MAX, "%+", localtime(&time)); (void) printf("%s", buffer); return; } }