1
0
mirror of https://github.com/adtools/clib2.git synced 2025-12-08 14:59:05 +00:00

- Changed the algorithm that calculates the number of days that have passed

so far as used by the the __convert_time() function and the conversion
  code in strftime().

- Also changed the algorithm used by strftime() to produce the week numbers
  (the '%U' and '%W' format specifiers). The new method is much simpler
  than the old one.

- Made the code that converts a 'time_t' value into the 'struct DateStamp',
  as used by strftime() and utime(), into its own function. This also
  fixes a bug in the code strftime() would use which was completely
  unaware of the local time zone settings.


git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14815 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
Olaf Barthel
2005-01-29 18:05:14 +00:00
parent 0ae8d68e64
commit ab22a23f27
26 changed files with 172 additions and 167 deletions

View File

@ -1,5 +1,5 @@
/*
* $Id: macros.h,v 1.6 2005-01-24 10:25:46 obarthel Exp $
* $Id: macros.h,v 1.7 2005-01-29 18:05:14 obarthel Exp $
*
* :ts=4
*
@ -67,10 +67,6 @@
/****************************************************************************/
#define MILLION (1000000)
/****************************************************************************/
#define NUM_ENTRIES(t) (sizeof(t) / sizeof(t[0]))
/****************************************************************************/