Sync our copy of the timezone library with IANA release tzcode2017c.
This is a trivial update containing only cosmetic changes. The point
is just to get back to being synced with an official release of tzcode,
rather than some ad-hoc point in their commit history, which is where
commit 47f849a3c
left it.
This commit is contained in:
parent
f3ea3e3e82
commit
24a1897ab9
|
@ -50,7 +50,7 @@ match properly on the old version.
|
|||
Time Zone code
|
||||
==============
|
||||
|
||||
The code in this directory is currently synced with tzcode release 2017b.
|
||||
The code in this directory is currently synced with tzcode release 2017c.
|
||||
There are many cosmetic (and not so cosmetic) differences from the
|
||||
original tzcode library, but diffs in the upstream version should usually
|
||||
be propagated to our version. Here are some notes about that.
|
||||
|
|
|
@ -802,8 +802,8 @@ transtime(int year, const struct rule *rulep,
|
|||
{
|
||||
bool leapyear;
|
||||
int32 value;
|
||||
int i,
|
||||
d,
|
||||
int i;
|
||||
int d,
|
||||
m1,
|
||||
yy0,
|
||||
yy1,
|
||||
|
|
|
@ -119,8 +119,7 @@ static char *_yconv(int, int, bool, bool, char *, const char *);
|
|||
|
||||
|
||||
size_t
|
||||
pg_strftime(char *s, size_t maxsize, const char *format,
|
||||
const struct pg_tm *t)
|
||||
pg_strftime(char *s, size_t maxsize, const char *format, const struct pg_tm *t)
|
||||
{
|
||||
char *p;
|
||||
enum warn warn = IN_NONE;
|
||||
|
@ -228,9 +227,9 @@ _fmt(const char *format, const struct pg_tm *t, char *pt,
|
|||
case 'k':
|
||||
|
||||
/*
|
||||
* This used to be... _conv(t->tm_hour % 12 ? t->tm_hour
|
||||
* % 12 : 12, 2, ' '); ...and has been changed to the
|
||||
* below to match SunOS 4.1.1 and Arnold Robbins' strftime
|
||||
* This used to be... _conv(t->tm_hour % 12 ? t->tm_hour %
|
||||
* 12 : 12, 2, ' '); ...and has been changed to the below
|
||||
* to match SunOS 4.1.1 and Arnold Robbins' strftime
|
||||
* version 3.0. That is, "%k" and "%l" have been swapped.
|
||||
* (ado, 1993-05-24)
|
||||
*/
|
||||
|
@ -312,7 +311,7 @@ _fmt(const char *format, const struct pg_tm *t, char *pt,
|
|||
* (01-53)."
|
||||
* (ado, 1993-05-24)
|
||||
*
|
||||
* From <http://www.ft.uni-erlangen.de/~mskuhn/iso-time.html> by Markus Kuhn:
|
||||
* From <https://www.cl.cam.ac.uk/~mgk25/iso-time.html> by Markus Kuhn:
|
||||
* "Week 01 of a year is per definition the first week which has the
|
||||
* Thursday in this year, which is equivalent to the week which contains
|
||||
* the fourth day of January. In other words, the first week of a new year
|
||||
|
|
|
@ -984,7 +984,7 @@ static zic_t const max_time = MAXVAL(zic_t, TIME_T_BITS_IN_FILE);
|
|||
* Ade PAR, Aghanim N, Armitage-Caplan C et al. Planck 2013 results.
|
||||
* I. Overview of products and scientific results.
|
||||
* arXiv:1303.5062 2013-03-20 20:10:01 UTC
|
||||
* <http://arxiv.org/pdf/1303.5062v1> [PDF]
|
||||
* <https://arxiv.org/pdf/1303.5062v1> [PDF]
|
||||
*
|
||||
* Page 36, Table 9, row Age/Gyr, column Planck+WP+highL+BAO 68% limits
|
||||
* gives the value 13.798 plus-or-minus 0.037 billion years.
|
||||
|
@ -1208,7 +1208,9 @@ infile(const char *name)
|
|||
/* nothing to do */
|
||||
}
|
||||
else if (wantcont)
|
||||
{
|
||||
wantcont = inzcont(fields, nfields);
|
||||
}
|
||||
else
|
||||
{
|
||||
struct lookup const *line_codes
|
||||
|
|
Loading…
Reference in New Issue