mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 21:05:08 +00:00
Change ctime to strftime %c to use national date/time representation
This commit is contained in:
parent
eaf7e02e63
commit
fc4a9baf50
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=9991
|
@ -33,7 +33,7 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: print.c,v 1.4 1995/05/30 00:06:50 rgrimes Exp $
|
||||
* $Id: print.c,v 1.5 1995/08/07 19:17:35 wollman Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
|
@ -227,9 +227,9 @@ printtime(ftime)
|
|||
time_t ftime;
|
||||
{
|
||||
int i;
|
||||
char *longstring;
|
||||
char longstring[80];
|
||||
|
||||
longstring = ctime(&ftime);
|
||||
strftime(longstring, sizeof(longstring), "%c", localtime(&ftime));
|
||||
for (i = 4; i < 11; ++i)
|
||||
(void)putchar(longstring[i]);
|
||||
|
||||
|
|
Loading…
Reference in a new issue