mirror of
https://github.com/adtools/clib2.git
synced 2025-12-08 14:59:05 +00:00
- The strftime() %z conversion now prints the time zone difference as a
"decimal" number. That is, if the difference is 5 hours and 30 minutes, then %z will now print "530" rather than "330". - mktime() now handles one leap second gracefully. git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14941 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: time_strftime.c,v 1.13 2005-05-08 11:27:26 obarthel Exp $
|
||||
* $Id: time_strftime.c,v 1.14 2005-05-09 13:47:24 obarthel Exp $
|
||||
*
|
||||
* :ts=4
|
||||
*
|
||||
@ -431,6 +431,10 @@ format_date(const char *format,const struct tm *tm,struct Hook * hook)
|
||||
|
||||
__locale_unlock();
|
||||
|
||||
/* The GMT offset is given in minutes. We need to print
|
||||
it as a decimal number. */
|
||||
gmt_offset = (100 * (gmt_offset / 60)) + (gmt_offset % 60);
|
||||
|
||||
__number_to_string((unsigned int)gmt_offset,buffer,sizeof(buffer),0);
|
||||
store_string_via_hook(buffer,-1,hook);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user