CVS commit: src/lib/libc/time

2021-02-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Mar  1 04:42:14 UTC 2021

Modified Files:
src/lib/libc/time: Makefile NEWS theory.html tz-art.html tz-link.html
version zic.8 zic.c

Log Message:
Merge tzcode-2021a
- No comments in the changelog about the code changes.


To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 src/lib/libc/time/Makefile
cvs rdiff -u -r1.32 -r1.33 src/lib/libc/time/NEWS
cvs rdiff -u -r1.10 -r1.11 src/lib/libc/time/theory.html
cvs rdiff -u -r1.7 -r1.8 src/lib/libc/time/tz-art.html
cvs rdiff -u -r1.8 -r1.9 src/lib/libc/time/tz-link.html
cvs rdiff -u -r1.15 -r1.16 src/lib/libc/time/version
cvs rdiff -u -r1.35 -r1.36 src/lib/libc/time/zic.8
cvs rdiff -u -r1.77 -r1.78 src/lib/libc/time/zic.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2020-10-17 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Oct 17 16:24:33 UTC 2020

Modified Files:
src/lib/libc/time: Makefile NEWS version

Log Message:
update to 2020c


To generate a diff of this commit:
cvs rdiff -u -r1.46 -r1.47 src/lib/libc/time/Makefile
cvs rdiff -u -r1.31 -r1.32 src/lib/libc/time/NEWS
cvs rdiff -u -r1.14 -r1.15 src/lib/libc/time/version

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2020-09-21 Thread Brian Ginsbach
Module Name:src
Committed By:   ginsbach
Date:   Mon Sep 21 15:31:54 UTC 2020

Modified Files:
src/lib/libc/time: strptime.c

Log Message:
Correct range for ISO week conversion

The %V conversion range for strptime(3) should match the strftime(3)
conversion range. A valid ISO week is 1-53.


To generate a diff of this commit:
cvs rdiff -u -r1.62 -r1.63 src/lib/libc/time/strptime.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2020-05-25 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon May 25 14:52:48 UTC 2020

Modified Files:
src/lib/libc/time: Makefile NEWS localtime.c private.h strftime.c
theory.html tz-art.html tz-link.html tzfile.5 version zdump.8
zdump.c zic.8 zic.c

Log Message:
Bring in 2020a


To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 src/lib/libc/time/Makefile
cvs rdiff -u -r1.29 -r1.30 src/lib/libc/time/NEWS src/lib/libc/time/tzfile.5
cvs rdiff -u -r1.122 -r1.123 src/lib/libc/time/localtime.c
cvs rdiff -u -r1.55 -r1.56 src/lib/libc/time/private.h
cvs rdiff -u -r1.46 -r1.47 src/lib/libc/time/strftime.c
cvs rdiff -u -r1.8 -r1.9 src/lib/libc/time/theory.html
cvs rdiff -u -r1.5 -r1.6 src/lib/libc/time/tz-art.html
cvs rdiff -u -r1.6 -r1.7 src/lib/libc/time/tz-link.html
cvs rdiff -u -r1.12 -r1.13 src/lib/libc/time/version
cvs rdiff -u -r1.19 -r1.20 src/lib/libc/time/zdump.8
cvs rdiff -u -r1.52 -r1.53 src/lib/libc/time/zdump.c
cvs rdiff -u -r1.33 -r1.34 src/lib/libc/time/zic.8
cvs rdiff -u -r1.75 -r1.76 src/lib/libc/time/zic.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2019-04-20 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Sat Apr 20 07:27:40 UTC 2019

Modified Files:
src/lib/libc/time: tzset.3

Log Message:
Remove 'No' macros with no effect.
Add width to table.
Fix en-dashes.


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/lib/libc/time/tzset.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2019-04-18 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Thu Apr 18 11:20:17 UTC 2019

Modified Files:
src/lib/libc/time: tzset.3

Log Message:
Note restrictions on return values from tzgetname() and tzgmtoff()


To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/lib/libc/time/tzset.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2019-04-17 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Apr 17 17:37:29 UTC 2019

Modified Files:
src/lib/libc/time: localtime.c

Log Message:
Pick up the latest matching (most recent) entry instead of the first one.

This fixes:
env TZ=Australia/Melbourne date
printing
Thu Apr 18 03:32:32 LMT 2019
instead of:
Thu Apr 18 03:32:32 AEST 2019

XXX: To be strictly correct, the tzgetname() call should probably take a time
reference point in order to return the appropriate zone name for the time
given.


To generate a diff of this commit:
cvs rdiff -u -r1.120 -r1.121 src/lib/libc/time/localtime.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2019-04-08 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Apr  8 18:50:52 UTC 2019

Modified Files:
src/lib/libc/time: localtime.c

Log Message:
The typecnt refers the to ttis array and the timecnt refers to the type array.
The types array can have 0 elements (i.e. timecnt == 0), but the ttis array
needs to have one element (typecnt >= 1). Need to revisit and take into
account the types array.


To generate a diff of this commit:
cvs rdiff -u -r1.119 -r1.120 src/lib/libc/time/localtime.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2019-04-07 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Apr  7 22:31:54 UTC 2019

Modified Files:
src/lib/libc/time: strftime.c

Log Message:
don't print ???, requested by kre@


To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 src/lib/libc/time/strftime.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2019-04-07 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Apr  7 14:58:25 UTC 2019

Modified Files:
src/lib/libc/time: localtime.c

Log Message:
only need to initialize the first type.


To generate a diff of this commit:
cvs rdiff -u -r1.118 -r1.119 src/lib/libc/time/localtime.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2019-04-07 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Apr  7 14:51:15 UTC 2019

Modified Files:
src/lib/libc/time: strftime.c

Log Message:
Don't try to print NULL if we can't get a timezone name. First we try dst,
then we try the non-dst name and finally we just print ??? if that did not
work. This is not needed to handle the "TZ= date" case which was crashing
before because the default timezone was not consistently initialized, but
should handle any timezone now.


To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 src/lib/libc/time/strftime.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2019-04-07 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Apr  7 14:44:51 UTC 2019

Modified Files:
src/lib/libc/time: localtime.c

Log Message:
Initialize the default timezone a bit more so that tzgetname(3) works.


To generate a diff of this commit:
cvs rdiff -u -r1.117 -r1.118 src/lib/libc/time/localtime.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2019-04-05 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Apr  5 21:27:44 UTC 2019

Modified Files:
src/lib/libc/time: strftime.3 strftime.c

Log Message:
- Padding support from FreeBSD (GNU extensions)
- add '+' for the c-locale only.


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/lib/libc/time/strftime.3
cvs rdiff -u -r1.43 -r1.44 src/lib/libc/time/strftime.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2019-04-04 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Apr  4 22:03:23 UTC 2019

Modified Files:
src/lib/libc/time: private.h

Log Message:
deal with zic that's not part of libc.


To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.55 src/lib/libc/time/private.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2019-04-04 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Apr  4 19:42:39 UTC 2019

Modified Files:
src/lib/libc/time: Makefile.inc

Log Message:
ALL_STATE was bought by STATE_FARM.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/lib/libc/time/Makefile.inc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2019-04-04 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Apr  4 19:27:28 UTC 2019

Modified Files:
src/lib/libc/time: localtime.c private.h strftime.c

Log Message:
Make strftime_{l,z} re-entrant and always require a non-NULL timezone to be
passed in so that we can use the current timezone in all evaluations (mktime
tzgetname). Reported by Hamilton Slye.


To generate a diff of this commit:
cvs rdiff -u -r1.116 -r1.117 src/lib/libc/time/localtime.c
cvs rdiff -u -r1.53 -r1.54 src/lib/libc/time/private.h
cvs rdiff -u -r1.42 -r1.43 src/lib/libc/time/strftime.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2019-04-04 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Apr  4 19:25:38 UTC 2019

Modified Files:
src/lib/libc/time: difftime.c

Log Message:
explicitly promote to double.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/lib/libc/time/difftime.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2019-04-04 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Apr  4 18:18:31 UTC 2019

Modified Files:
src/lib/libc/time: Makefile NEWS README theory.html tz-art.html
tz-link.html tzfile.5 version zic.8 zic.c

Log Message:
merge 2019a

  Changes to code

zic now has an -r option to limit the time range of output data.
For example, 'zic -r @10' limits the output data to
timestamps starting 10 seconds after the Epoch.
This helps shrink output size and can be useful for applications
not needing the full timestamp history, such as TZDIST truncation;
see Internet RFC 8536 section 5.1.  (Inspired by a feature request
from Christopher Wong, helped along by bug reports from Wong and
from Tim Parenti.)

  Changes to documentation

Mention Internet RFC 8536 (February 2019), which documents TZif.

tz-link.html now cites tzdata-meta
.


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/lib/libc/time/Makefile
cvs rdiff -u -r1.27 -r1.28 src/lib/libc/time/NEWS src/lib/libc/time/tzfile.5
cvs rdiff -u -r1.14 -r1.15 src/lib/libc/time/README
cvs rdiff -u -r1.6 -r1.7 src/lib/libc/time/theory.html
cvs rdiff -u -r1.3 -r1.4 src/lib/libc/time/tz-art.html
cvs rdiff -u -r1.4 -r1.5 src/lib/libc/time/tz-link.html
cvs rdiff -u -r1.10 -r1.11 src/lib/libc/time/version
cvs rdiff -u -r1.31 -r1.32 src/lib/libc/time/zic.8
cvs rdiff -u -r1.73 -r1.74 src/lib/libc/time/zic.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2019-02-24 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Sun Feb 24 11:51:05 UTC 2019

Modified Files:
src/lib/libc/time: strptime.3

Log Message:
fix typo. From Evil_Bob.


To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 src/lib/libc/time/strptime.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2019-01-26 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Sun Jan 27 04:38:38 UTC 2019

Modified Files:
src/lib/libc/time: difftime.c localtime.c

Log Message:
fix duplicated chunk from merge


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/lib/libc/time/difftime.c
cvs rdiff -u -r1.115 -r1.116 src/lib/libc/time/localtime.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2019-01-26 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Sun Jan 27 02:40:50 UTC 2019

Modified Files:
src/lib/libc/time: asctime.c

Log Message:
fix mergeo


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/lib/libc/time/asctime.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2018-12-31 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan  1 03:04:56 UTC 2019

Modified Files:
src/lib/libc/time: Makefile NEWS localtime.c theory.html tz-art.html
tz-link.html version zdump.c zic.c

Log Message:
Release 2018i - 2018-12-30 11:05:43 -0800

  Briefly:
São Tomé and Príncipe switches from +01 to +00 on 2019-01-01.

  Changes to future timestamps

Due to a change in government, São Tomé and Príncipe switches back
from +01 to +00 on 2019-01-01 at 02:00.  (Thanks to Vadim
Nasardinov and Michael Deckers.)

Release 2018h - 2018-12-23 17:59:32 -0800

  Briefly:
Qyzylorda, Kazakhstan moved from +06 to +05 on 2018-12-21.
New zone Asia/Qostanay because Qostanay, Kazakhstan didn't move.
Metlakatla, Alaska observes PST this winter only.
Guess Morocco will continue to adjust clocks around Ramadan.
Add predictions for Iran from 2038 through 2090.

  Changes to future timestamps

Guess that Morocco will continue to fall back just before and
spring forward just after Ramadan, the practice since 2012.
(Thanks to Maamar Abdelkader.)  This means Morocco will observe
negative DST during Ramadan in main and vanguard formats, and in
rearguard format it stays in the +00 timezone and observes
ordinary DST in all months other than Ramadan.  As before, extend
this guesswork to the year 2037.  As a consequence, Morocco is
scheduled to observe three DST transitions in some Gregorian years
(e.g., 2033) due to the mismatch between the Gregorian and Islamic
calendars.

The table of exact transitions for Iranian DST has been extended.
It formerly cut off before the year 2038 in a nod to 32-bit time_t.
It now cuts off before 2091 as there is doubt about how the Persian
calendar will treat 2091.  This change predicts DST transitions in
2038-9, 2042-3, and 2046-7 to occur one day later than previously
predicted.  As before, post-cutoff transitions are approximated.

  Changes to past and future timestamps

Qyzylorda (aka Kyzylorda) oblast in Kazakhstan moved from +06 to
+05 on 2018-12-21.  This is a zone split as Qostanay (aka
Kostanay) did not switch, so create a zone Asia/Qostanay.

Metlakatla moved from Alaska to Pacific standard time on 2018-11-04.
It did not change clocks that day and remains on -08 this winter.
(Thanks to Ryan Stanley.)  It will revert to the usual Alaska
rules next spring, so this change affects only timestamps
from 2018-11-04 through 2019-03-10.

  Change to past timestamps

Kwajalein's 1993-08-20 transition from -12 to +12 was at 24:00,
not 00:00.  I transcribed the time incorrectly from Shanks.
(Thanks to Phake Nick.)

Nauru's 1979 transition was on 02-10 at 02:00, not 05-01 at 00:00.
(Thanks to Phake Nick.)

Guam observed DST irregularly from 1959 through 1977.
(Thanks to Phake Nick.)

Hong Kong observed DST in 1941 starting 06-15 (not 04-01), then on
10-01 changed standard time to +08:30 (not +08).  Its transition
back to +08 after WWII was on 1945-09-15, not the previous day.
Its 1904-10-30 change took effect at 01:00 +08 (not 00:00 LMT).
(Thanks to Phake Nick, Steve Allen, and Joseph Myers.)  Also,
its 1952 fallback was on 11-02 (not 10-25).

This release contains many changes to timestamps before 1946 due
to Japanese possession or occupation of Pacific/Chuuk,
Pacific/Guam, Pacific/Kosrae, Pacific/Kwajalein, Pacific/Majuro,
Pacific/Nauru, Pacific/Palau, and Pacific/Pohnpei.
(Thanks to Phake Nick.)

Assume that the Spanish East Indies was like the Philippines and
observed American time until the end of 1844.  This affects
Pacific/Chuuk, Pacific/Kosrae, Pacific/Palau, and Pacific/Pohnpei.

  Changes to past tm_isdst flags

For the recent Morocco change, the tm_isdst flag should be 1 from
2018-10-27 00:00 to 2018-10-28 03:00.  (Thanks to Michael Deckers.)
Give a URL to the official decree.  (Thanks to Matt Johnson.)


To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 src/lib/libc/time/Makefile
cvs rdiff -u -r1.26 -r1.27 src/lib/libc/time/NEWS
cvs rdiff -u -r1.113 -r1.114 src/lib/libc/time/localtime.c
cvs rdiff -u -r1.5 -r1.6 src/lib/libc/time/theory.html
cvs rdiff -u -r1.2 -r1.3 src/lib/libc/time/tz-art.html
cvs rdiff -u -r1.3 -r1.4 src/lib/libc/time/tz-link.html
cvs rdiff -u -r1.9 -r1.10 src/lib/libc/time/version
cvs rdiff -u -r1.50 -r1.51 src/lib/libc/time/zdump.c
cvs rdiff -u -r1.72 -r1.73 src/lib/libc/time/zic.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2018-10-27 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Oct 27 22:29:24 UTC 2018

Modified Files:
src/lib/libc/time: NEWS theory.html tz-how-to.html tz-link.html
tzfile.5 version zdump.8 zic.8 zic.c

Log Message:
Welcome tzcode-2018g

  Changes to code

When generating TZif files with leap seconds, zic no longer uses a
format that trips up older 32-bit clients, fixing a bug introduced
in 2018f.  (Reported by Daniel Fischer.)  Also, the zic workaround
for QTBUG-53071 now also works for TZif files with leap seconds.

The translator to rearguard format now rewrites the line
"Rule Japan 1948 1951 - Sep Sat>=8 25:00 0 S" to
"Rule Japan 1948 1951 - Sep Sun>=9  1:00 0 S".
This caters to zic before 2007 and to Oracle TZUpdater 2.2.0
and earlier.  (Reported by Christos Zoulas.)

  Changes to documentation

tzfile.5 has new sections on interoperability issues.


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/lib/libc/time/NEWS
cvs rdiff -u -r1.4 -r1.5 src/lib/libc/time/theory.html
cvs rdiff -u -r1.5 -r1.6 src/lib/libc/time/tz-how-to.html
cvs rdiff -u -r1.2 -r1.3 src/lib/libc/time/tz-link.html
cvs rdiff -u -r1.26 -r1.27 src/lib/libc/time/tzfile.5
cvs rdiff -u -r1.8 -r1.9 src/lib/libc/time/version
cvs rdiff -u -r1.18 -r1.19 src/lib/libc/time/zdump.8
cvs rdiff -u -r1.30 -r1.31 src/lib/libc/time/zic.8
cvs rdiff -u -r1.71 -r1.72 src/lib/libc/time/zic.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2018-10-19 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Oct 19 23:05:35 UTC 2018

Modified Files:
src/lib/libc/time: CONTRIBUTING Makefile NEWS README ctime.3 difftime.c
localtime.c private.h strftime.3 strftime.c theory.html tz-art.html
tz-how-to.html tz-link.html tzfile.5 tzselect.8 tzselect.ksh
tzset.3 version zdump.8 zdump.c zic.8

Log Message:
Update to 2018f:

  Changes to code

zic now always generates TZif files where time type 0 is used for
timestamps before the first transition.  This simplifies the
reading of TZif files and should not affect behavior of existing
TZif readers because the same set of time types is used; only
their internal indexes may have changed.  This affects only the
legacy zones EST5EDT, CST6CDT, MST7MDT, PST8PDT, CET, MET, and
EET, which previously used nonzero types for these timestamps.

Because of the type 0 change, zic no longer outputs a dummy
transition at time -2**59 (before the Big Bang), as clients should
no longer need this to handle historical timestamps correctly.
This reverts a change introduced in 2013d and shrinks most TZif
files by a few bytes.

zic now supports negative time-of-day in Rule and Leap lines, e.g.,
"Rule X min max - Apr lastSun -6:00 1:00 -" means the transition
occurs at 18:00 on the Saturday before the last Sunday in April.
This behavior was documented in 2018a but the code did not
entirely match the documentation.

localtime.c no longer requires at least one time type in TZif
files that lack transitions or have a POSIX-style TZ string.  This
future-proofs the code against possible future extensions to the
format that would allow TZif files with POSIX-style TZ strings and
without transitions or time types.

A read-access subscript error in localtime.c has been fixed.
It could occur only in TZif files with timecnt == 0, something that
does not happen in practice now but could happen in future versions.

localtime.c no longer ignores TZif POSIX-style TZ strings that
specify only standard time.  Instead, these TZ strings now
override the default time type for timestamps after the last
transition (or for all time stamps if there are no transitions),
just as DST strings specifying DST have always done.

leapseconds.awk now outputs "#updated" and "#expires" comments,
and supports leap seconds at the ends of months other than June
and December.  (Inspired by suggestions from Chris Woodbury.)

  Changes to documentation

New restrictions: A Rule name must start with a character that
is neither an ASCII digit nor "-" nor "+", and an unquoted name
should not use characters in the set "!$%&'()*,/:;<=>?@[\]^`{|}~".
The latter restriction makes room for future extensions (a
possibility noted by Tom Lane).

tzfile.5 now documents what time types apply before the first and
after the last transition, if any.

Documentation now uses the spelling "timezone" for a TZ setting
that determines timestamp history, and "time zone" for a
geographic region currently sharing the same standard time.

The name "TZif" is now used for the tz binary data format.

tz-link.htm now mentions the A0 TimeZone Migration utilities.
(Thanks to Aldrin Martoq for the link.)


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/lib/libc/time/CONTRIBUTING \
src/lib/libc/time/tz-how-to.html
cvs rdiff -u -r1.40 -r1.41 src/lib/libc/time/Makefile
cvs rdiff -u -r1.24 -r1.25 src/lib/libc/time/NEWS
cvs rdiff -u -r1.13 -r1.14 src/lib/libc/time/README
cvs rdiff -u -r1.59 -r1.60 src/lib/libc/time/ctime.3
cvs rdiff -u -r1.18 -r1.19 src/lib/libc/time/difftime.c
cvs rdiff -u -r1.112 -r1.113 src/lib/libc/time/localtime.c
cvs rdiff -u -r1.52 -r1.53 src/lib/libc/time/private.h
cvs rdiff -u -r1.33 -r1.34 src/lib/libc/time/strftime.3
cvs rdiff -u -r1.41 -r1.42 src/lib/libc/time/strftime.c
cvs rdiff -u -r1.3 -r1.4 src/lib/libc/time/theory.html
cvs rdiff -u -r1.1 -r1.2 src/lib/libc/time/tz-art.html \
src/lib/libc/time/tz-link.html
cvs rdiff -u -r1.25 -r1.26 src/lib/libc/time/tzfile.5
cvs rdiff -u -r1.7 -r1.8 src/lib/libc/time/tzselect.8 \
src/lib/libc/time/version
cvs rdiff -u -r1.17 -r1.18 src/lib/libc/time/tzselect.ksh \
src/lib/libc/time/zdump.8
cvs rdiff -u -r1.38 -r1.39 src/lib/libc/time/tzset.3
cvs rdiff -u -r1.49 -r1.50 src/lib/libc/time/zdump.c
cvs rdiff -u -r1.29 -r1.30 src/lib/libc/time/zic.8

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2018-05-04 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri May  4 15:51:00 UTC 2018

Modified Files:
src/lib/libc/time: CONTRIBUTING Makefile NEWS asctime.c ctime.3
localtime.c private.h strftime.c theory.html tzset.3 version
zdump.c zic.8 zic.c
Added Files:
src/lib/libc/time: tz-art.html tz-link.html
Removed Files:
src/lib/libc/time: tz-art.htm tz-link.htm

Log Message:
Merge 2018e

  Changes to code

zic now accepts subsecond precision in expressions like
00:19:32.13, which is approximately the legal time of the
Netherlands from 1835 to 1937.  However, because it is
questionable whether the few recorded uses of non-integer offsets
had subsecond precision in practice, there are no plans for tzdata
to use this feature.  (Thanks to Steve Allen for pointing out
the limitations of historical data in this area.)

The code is a bit more portable to MS-Windows.  Installers can
compile with -DRESERVE_STD_EXT_IDS on MS-Windows platforms that
reserve identifiers like 'localtime'.  (Thanks to Manuela
Friedrich).

  Changes to documentation and commentary

theory.html now outlines tzdb's extensions to POSIX's model for
civil time, and has a section "POSIX features no longer needed"
that lists POSIX API components that are now vestigial.
(From suggestions by Steve Summit.)  It also better distinguishes
time zones from tz regions.  (From a suggestion by Guy Harris.)

Commentary is now more consistent about using the phrase "daylight
saving time", to match the C name tm_isdst.  Daylight saving time
need not occur in summer, and need not have a positive offset from
standard time.

Commentary about historical transitions in Uruguay has been expanded
with links to many relevant legal documents.
(Thanks to Tim Parenti.)

Commentary now uses some non-ASCII characters with Unicode value
less than U+0100, as they can be useful and should work even with
older editors such as XEmacs.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libc/time/CONTRIBUTING
cvs rdiff -u -r1.39 -r1.40 src/lib/libc/time/Makefile
cvs rdiff -u -r1.23 -r1.24 src/lib/libc/time/NEWS
cvs rdiff -u -r1.24 -r1.25 src/lib/libc/time/asctime.c
cvs rdiff -u -r1.58 -r1.59 src/lib/libc/time/ctime.3
cvs rdiff -u -r1.111 -r1.112 src/lib/libc/time/localtime.c
cvs rdiff -u -r1.51 -r1.52 src/lib/libc/time/private.h
cvs rdiff -u -r1.40 -r1.41 src/lib/libc/time/strftime.c
cvs rdiff -u -r1.2 -r1.3 src/lib/libc/time/theory.html
cvs rdiff -u -r1.17 -r0 src/lib/libc/time/tz-art.htm
cvs rdiff -u -r0 -r1.1 src/lib/libc/time/tz-art.html \
src/lib/libc/time/tz-link.html
cvs rdiff -u -r1.32 -r0 src/lib/libc/time/tz-link.htm
cvs rdiff -u -r1.37 -r1.38 src/lib/libc/time/tzset.3
cvs rdiff -u -r1.6 -r1.7 src/lib/libc/time/version
cvs rdiff -u -r1.48 -r1.49 src/lib/libc/time/zdump.c
cvs rdiff -u -r1.28 -r1.29 src/lib/libc/time/zic.8
cvs rdiff -u -r1.70 -r1.71 src/lib/libc/time/zic.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2018-02-11 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Sun Feb 11 13:28:50 UTC 2018

Modified Files:
src/lib/libc/time: getdate.3

Log Message:
Remove useless macro.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/lib/libc/time/getdate.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2018-02-11 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Sun Feb 11 13:28:26 UTC 2018

Modified Files:
src/lib/libc/time: ctime.3

Log Message:
Remove Tn. Remove trailing whitespace. Remove useless Pp.


To generate a diff of this commit:
cvs rdiff -u -r1.57 -r1.58 src/lib/libc/time/ctime.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2018-01-25 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Jan 25 22:48:42 UTC 2018

Modified Files:
src/lib/libc/time: Makefile NEWS README ctime.3 localtime.c theory.html
tz-how-to.html tzselect.8 tzselect.ksh tzset.3 version zdump.c
zic.8 zic.c

Log Message:
Merge tzcode2018c [ changelog with changes to tzdata sections removed ]

Release 2018c - 2018-01-22 23:00:44 -0800

  Changes to build procedure

The build procedure now works around mawk 1.3.3's lack of support
for character class expressions.  (Problem reported by Ohyama.)

Release 2018b - 2018-01-17 23:24:48 -0800

  Changes to build procedure

The distribution now contains the file 'pacificnew' again.
This file was inadvertantly omitted in the 2018a distribution.
(Problem reported by Matias Fonzo.)

Release 2018a - 2018-01-12 22:29:21 -0800

  Changes to build procedure

The default installation locations have been changed to mostly
match Debian circa 2017, instead of being designed as an add-on to
4.3BSD circa 1986.  This affects the Makefile macros TOPDIR,
TZDIR, MANDIR, and LIBDIR.  New Makefile macros TZDEFAULT, USRDIR,
USRSHAREDIR, BINDIR, ZDUMPDIR, and ZICDIR let installers tailor
locations more precisely.  (This responds to suggestions from
Brian Inglis and from Steve Summit.)

The default installation procedure no longer creates the
backward-compatibility link US/Pacific-New, which causes
confusion during user setup (e.g., see Debian bug 815200).
Use 'make BACKWARD="backward pacificnew"' to create the link
anyway, for now.  Eventually we plan to remove the link entirely.

tzdata.zi now contains a version-number comment.
(Suggested by Tom Lane.)

The Makefile now quotes values like BACKWARD more carefully when
passing them to the shell.  (Problem reported by Zefram.)

Builders no longer need to specify -DHAVE_SNPRINTF on platforms
that have snprintf and use pre-C99 compilers.  (Problem reported
by Jon Skeet.)

  Changes to code

zic has a new option -t FILE that specifies the location of the
file that determines local time when TZ is unset.  The default for
this location can be configured via the new TZDEFAULT makefile
macro, which defaults to /etc/localtime.

Diagnostics and commentary now distinguish UT from UTC more
carefully; see theory.html for more information about UT vs UTC.

zic has been ported to GCC 8's -Wstringop-truncation option.
(Problem reported by Martin Sebor.)

  Changes to documentation and commentary

The zic man page now documents the longstanding behavior that
times and years can be out of the usual range, with negative times
counting backwards from midnight and with year 0 preceding year 1.
(Problem reported by Michael Deckers.)

The theory.html file now mentions the POSIX limit of six chars
per abbreviation, and lists alphabetic abbreviations used.

The files tz-art.htm and tz-link.htm have been renamed to
tz-art.html and tz-link.html, respectively, for consistency with
other file names and to simplify web server configuration.


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 src/lib/libc/time/Makefile
cvs rdiff -u -r1.22 -r1.23 src/lib/libc/time/NEWS
cvs rdiff -u -r1.12 -r1.13 src/lib/libc/time/README
cvs rdiff -u -r1.55 -r1.56 src/lib/libc/time/ctime.3
cvs rdiff -u -r1.110 -r1.111 src/lib/libc/time/localtime.c
cvs rdiff -u -r1.1 -r1.2 src/lib/libc/time/theory.html
cvs rdiff -u -r1.3 -r1.4 src/lib/libc/time/tz-how-to.html
cvs rdiff -u -r1.6 -r1.7 src/lib/libc/time/tzselect.8
cvs rdiff -u -r1.16 -r1.17 src/lib/libc/time/tzselect.ksh
cvs rdiff -u -r1.36 -r1.37 src/lib/libc/time/tzset.3
cvs rdiff -u -r1.5 -r1.6 src/lib/libc/time/version
cvs rdiff -u -r1.47 -r1.48 src/lib/libc/time/zdump.c
cvs rdiff -u -r1.27 -r1.28 src/lib/libc/time/zic.8
cvs rdiff -u -r1.69 -r1.70 src/lib/libc/time/zic.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2017-10-28 Thread Abhinav Upadhyay
Module Name:src
Committed By:   abhinav
Date:   Sun Oct 29 06:07:48 UTC 2017

Modified Files:
src/lib/libc/time: time2posix.3

Log Message:
Fix the escape used for em dash

ok wiz@


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/lib/libc/time/time2posix.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2017-10-27 Thread Robert Elz
Module Name:src
Committed By:   kre
Date:   Fri Oct 27 08:43:11 UTC 2017

Modified Files:
src/lib/libc/time: localtime.c

Log Message:
Replace a line that somehow got lost in the import from tzcode2017c


To generate a diff of this commit:
cvs rdiff -u -r1.109 -r1.110 src/lib/libc/time/localtime.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2017-10-26 Thread Robert Elz
Module Name:src
Committed By:   kre
Date:   Fri Oct 27 04:05:21 UTC 2017

Modified Files:
src/lib/libc/time: strptime.3

Log Message:
Minor typo: Coordinated Universal time  should be  Coordinated Universal Time


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/lib/libc/time/strptime.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2017-10-25 Thread Abhinav Upadhyay
Module Name:src
Committed By:   abhinav
Date:   Wed Oct 25 19:04:07 UTC 2017

Modified Files:
src/lib/libc/time: time2posix.3

Log Message:
Remove comma after last Nm entry
Remove whitespace at the end of a line


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/lib/libc/time/time2posix.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2017-10-25 Thread Abhinav Upadhyay
Module Name:src
Committed By:   abhinav
Date:   Wed Oct 25 19:01:25 UTC 2017

Modified Files:
src/lib/libc/time: offtime.3

Log Message:
Add offtime_r to the NAME section


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libc/time/offtime.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2017-10-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Oct 24 17:38:17 UTC 2017

Modified Files:
src/lib/libc/time: CONTRIBUTING LICENSE Makefile NEWS asctime.c ctime.3
difftime.c localtime.c private.h strftime.c tz-art.htm
tz-how-to.html tz-link.htm tzfile.5 tzselect.ksh version zdump.c
zic.8 zic.c
Added Files:
src/lib/libc/time: calendars theory.html

Log Message:
Welcome to 2017c:

zic and the reference runtime now reject multiple leap seconds
within 28 days of each other, or leap seconds before the Epoch.
As a result, support for double leap seconds, which was
obsolescent and undocumented, has been removed.  Double leap
seconds were an error in the C89 standard; they have never existed
in civil timekeeping.  (Thanks to Robert Elz and Bradley White for
noticing glitches in the code that uncovered this problem.)

zic now warns about use of the obsolescent and undocumented -y
option, and about use of the obsolescent TYPE field of Rule lines.

zic now allows unambiguous abbreviations like "Sa" and "Su" for
weekdays; formerly it rejected them due to a bug.  Conversely, zic
no longer considers non-prefixes to be abbreviations; for example,
it no longer accepts "lF" as an abbreviation for "lastFriday".
Also, zic warns about the undocumented usage with a "last-"
prefix, e.g., "last-Fri".

Similarly, zic now accepts the unambiguous abbreviation "L" for
"Link" in ordinary context and for "Leap" in leap-second context.
Conversely, zic no longer accepts non-prefixes such as "La" as
abbreviations for words like "Leap".

zic no longer accepts leap second lines in ordinary input, or
ordinary lines in leap second input.  Formerly, zic sometimes
warned about this undocumented usage and handled it incorrectly.

The new macro HAVE_TZNAME governs whether the tzname external
variable is exported, instead of USG_COMPAT.  USG_COMPAT now
governs only the external variables "timezone" and "daylight".
This change is needed because the three variables are not in the
same category: although POSIX requires tzname, it specifies the
other two variables as optional.  Also, USG_COMPAT is now 1 or 0:
if not defined, the code attempts to guess it from other macros.

localtime.c and difftime.c no longer require stdio.h, and .c files
other than zic.c no longer require sys/wait.h.

zdump.c no longer assumes snprintf.  (Reported by Jonathan Leffler.)

Calculation of time_t extrema works around a bug in GCC 4.8.4
(Reported by Stan Shebs and Joseph Myers.)

zic.c no longer mistranslates formats of line numbers in non-English
locales.  (Problem reported by Benno Schulenberg.)

Several minor changes have been made to the code to make it a
bit easier to port to MS-Windows and Solaris.  (Thanks to Kees
Dekker for reporting the problems.)

  Changes to documentation and commentary

The two new files 'theory.html' and 'calendars' contain the
contents of the removed file 'Theory'.  The goal is to document
tzdb theory more accessibly.

The zic man page now documents abbreviation rules.

tz-link.htm now covers how to apply tzdata changes to clients.
(Thanks to Jorge Fábregas for the AIX link.)  It also mentions MySQL.

The leap-seconds.list URL has been updated to something that is
more reliable for tzdb.  (Thanks to Tim Parenti and Brian Inglis.)


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/lib/libc/time/CONTRIBUTING \
src/lib/libc/time/tz-how-to.html
cvs rdiff -u -r1.1 -r1.2 src/lib/libc/time/LICENSE
cvs rdiff -u -r1.37 -r1.38 src/lib/libc/time/Makefile
cvs rdiff -u -r1.21 -r1.22 src/lib/libc/time/NEWS src/lib/libc/time/asctime.c
cvs rdiff -u -r0 -r1.1 src/lib/libc/time/calendars \
src/lib/libc/time/theory.html
cvs rdiff -u -r1.54 -r1.55 src/lib/libc/time/ctime.3
cvs rdiff -u -r1.17 -r1.18 src/lib/libc/time/difftime.c
cvs rdiff -u -r1.108 -r1.109 src/lib/libc/time/localtime.c
cvs rdiff -u -r1.50 -r1.51 src/lib/libc/time/private.h
cvs rdiff -u -r1.39 -r1.40 src/lib/libc/time/strftime.c
cvs rdiff -u -r1.16 -r1.17 src/lib/libc/time/tz-art.htm
cvs rdiff -u -r1.31 -r1.32 src/lib/libc/time/tz-link.htm
cvs rdiff -u -r1.24 -r1.25 src/lib/libc/time/tzfile.5
cvs rdiff -u -r1.15 -r1.16 src/lib/libc/time/tzselect.ksh
cvs rdiff -u -r1.4 -r1.5 src/lib/libc/time/version
cvs rdiff -u -r1.46 -r1.47 src/lib/libc/time/zdump.c
cvs rdiff -u -r1.26 -r1.27 src/lib/libc/time/zic.8
cvs rdiff -u -r1.68 -r1.69 src/lib/libc/time/zic.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2017-08-11 Thread Brian Ginsbach
Module Name:src
Committed By:   ginsbach
Date:   Sat Aug 12 03:29:23 UTC 2017

Modified Files:
src/lib/libc/time: strptime.c

Log Message:
Fix a couple comments and a spacing nit.

- Change a XXX comment that no longer applies.
- Add a clarifying comment.


To generate a diff of this commit:
cvs rdiff -u -r1.60 -r1.61 src/lib/libc/time/strptime.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2017-05-10 Thread Robert Elz
Module Name:src
Committed By:   kre
Date:   Wed May 10 10:34:30 UTC 2017

Modified Files:
src/lib/libc/time: localtime.c

Log Message:
Turns out that the previous fix is incorrect, we were not doing ++hit
to change the boolean hit from false to true, but to change it from 1 to 2
which in a sense should have been obvious from the context:
if (hit)
/* more tests */
++hit;
The real problem was that hit was (in the imported tzcode) incorrectly
changed from int to bool in a previous update.

Not that it matters, this code is never actually executed - it was there
to deal with the mythical double leapseconds, which simply never exist
(hit counted the number of leapseconds in an adjustment) and it will all
be gone in the next tzcode update.

For now, just turn hit back into an int, which should satisfy gcc 8,
I hope.


To generate a diff of this commit:
cvs rdiff -u -r1.107 -r1.108 src/lib/libc/time/localtime.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2017-05-08 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Tue May  9 02:30:49 UTC 2017

Modified Files:
src/lib/libc/time: localtime.c

Log Message:
++bool to bool=true to appease GCC 8. NFC

ok riastradh


To generate a diff of this commit:
cvs rdiff -u -r1.106 -r1.107 src/lib/libc/time/localtime.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2017-04-25 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Apr 25 13:19:45 UTC 2017

Modified Files:
src/lib/libc/time: NEWS tz-link.htm version

Log Message:
merge tzcode2017b.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/lib/libc/time/NEWS
cvs rdiff -u -r1.30 -r1.31 src/lib/libc/time/tz-link.htm
cvs rdiff -u -r1.3 -r1.4 src/lib/libc/time/version

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2017-03-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Mar 11 18:23:14 UTC 2017

Modified Files:
src/lib/libc/time: CONTRIBUTING Makefile NEWS README Theory asctime.c
localtime.c private.h strftime.3 strftime.c tz-art.htm tz-link.htm
version zdump.8 zdump.c zic.c

Log Message:
merge 2017a


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libc/time/CONTRIBUTING
cvs rdiff -u -r1.36 -r1.37 src/lib/libc/time/Makefile
cvs rdiff -u -r1.19 -r1.20 src/lib/libc/time/NEWS
cvs rdiff -u -r1.11 -r1.12 src/lib/libc/time/README
cvs rdiff -u -r1.22 -r1.23 src/lib/libc/time/Theory
cvs rdiff -u -r1.20 -r1.21 src/lib/libc/time/asctime.c
cvs rdiff -u -r1.105 -r1.106 src/lib/libc/time/localtime.c
cvs rdiff -u -r1.49 -r1.50 src/lib/libc/time/private.h
cvs rdiff -u -r1.32 -r1.33 src/lib/libc/time/strftime.3
cvs rdiff -u -r1.38 -r1.39 src/lib/libc/time/strftime.c
cvs rdiff -u -r1.15 -r1.16 src/lib/libc/time/tz-art.htm \
src/lib/libc/time/zdump.8
cvs rdiff -u -r1.29 -r1.30 src/lib/libc/time/tz-link.htm
cvs rdiff -u -r1.2 -r1.3 src/lib/libc/time/version
cvs rdiff -u -r1.45 -r1.46 src/lib/libc/time/zdump.c
cvs rdiff -u -r1.67 -r1.68 src/lib/libc/time/zic.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 17:44:51 UTC 2017

Modified Files:
src/lib/libc/time: difftime.c

Log Message:
add constcond


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/lib/libc/time/difftime.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2016-12-29 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Thu Dec 29 21:03:51 UTC 2016

Modified Files:
src/lib/libc/time: ctime.3

Log Message:
Fix asctime_r prototype.


To generate a diff of this commit:
cvs rdiff -u -r1.53 -r1.54 src/lib/libc/time/ctime.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2016-12-24 Thread Abhinav Upadhyay
Module Name:src
Committed By:   abhinav
Date:   Sun Dec 25 06:37:50 UTC 2016

Modified Files:
src/lib/libc/time: strptime.3

Log Message:
As per the IEEE 1003.1-2008 standard, the range of values for the %S
format specifier is [0,60].


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/lib/libc/time/strptime.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2016-12-23 Thread Abhinav Upadhyay
Module Name:src
Committed By:   abhinav
Date:   Sat Dec 24 05:33:51 UTC 2016

Modified Files:
src/lib/libc/time: strftime.3

Log Message:
As per C99 the range of values for the %S format specifier is [0,60]
rather than [0,61]. The standard has removed mention of double leap seconds.
The standard has give the following rationale in the time.h man page:

"The range [0,60] seconds allows for positive or negative leap seconds.
The formal definition of UTC does not permit double leap seconds, so all
mention of double leap seconds has been removed, and the range shortened
from the former [0,61] seconds seen in previous versions of POSIX."


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/lib/libc/time/strftime.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2016-12-22 Thread Abhinav Upadhyay
Module Name:src
Committed By:   abhinav
Date:   Thu Dec 22 17:39:29 UTC 2016

Modified Files:
src/lib/libc/time: ctime.3

Log Message:
Remove trailing comma at the end of the last .Nm entry in the NAME section


To generate a diff of this commit:
cvs rdiff -u -r1.52 -r1.53 src/lib/libc/time/ctime.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2016-12-22 Thread Abhinav Upadhyay
Module Name:src
Committed By:   abhinav
Date:   Thu Dec 22 17:27:02 UTC 2016

Modified Files:
src/lib/libc/time: ctime.3

Log Message:
Grammar fixes at few places
Also, don't use .D1 inside .Bd (mandoc -Tlint was complaining)
Remove whitespace at the end of a sentence


To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 src/lib/libc/time/ctime.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2016-11-05 Thread Robert Elz
Module Name:src
Committed By:   kre
Date:   Sat Nov  5 23:09:37 UTC 2016

Modified Files:
src/lib/libc/time: zic.c

Log Message:
Actually, this problem won't be reported upstream, their code is
just ...

ptrdiff_t nitems_max = PTRDIFF_MAX - WORK_AROUND_QTBUG_53071;
ptrdiff_t amax = nitems_max < SIZE_MAX ? nitems_max : SIZE_MAX;

which is just fine if you think about it a little,   Unfortunately,
in our zealous effort to never leave a ggc warning unused, and to
treat all of the warnings as fatal errors, that code falls foul of the
"you must not compare an unsigned value with a signed value" warning.

nitems_max is a (signed) largish positive integer (obviously, by
inspection).  If it is less than SIZE_MAX then amax is just nitems_max.
In the unlikely case that size_t has less bits than ptrdiff_t so
SIZE_MAX is smaller, amax is limited to SIZE_MAX (which in that case
is known to fit in the ptrdiff_t and to remain positive).

To pacify gcc (and the way the build system uses it), casts are
required.   Unfortunately the cast that was installed here was to
convert SIZE_MAX to a ptrdiff_t.  Unfortunately when ptrdiff_t has
the same number of bits (or less) as size_t (ie: the common case)
but is signed, (ptrdiff_t)SIZE_MAX is just a fancy way of writing -1.

Rearrange the casting in a way that keeps the original intent
of the code for us (it is actyaly now incorrect if size_t has less
bits than a ptrdiff_t) and keeps gcc happy, all at the same time.

What a mess.


To generate a diff of this commit:
cvs rdiff -u -r1.66 -r1.67 src/lib/libc/time/zic.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2016-11-05 Thread Robert Elz
Module Name:src
Committed By:   kre
Date:   Sat Nov  5 22:21:48 UTC 2016

Modified Files:
src/lib/libc/time: zic.c

Log Message:
Revert a couple of lines of code from tzcode2016i to their state in 2016h

SIZE_MAX is the max value of a size_t (and is unsigned) so when converted
to a ptrdiff_t  (int) becomes -1.   That's not what the code was attempting
to achieve.

This will be reported upstream to the tzcode maintainers, and we'll see
what variation appears in tzcode2016j ...

Until then, the older code always worked for us, so it will do for now.

This should fix the broken i386 build.


To generate a diff of this commit:
cvs rdiff -u -r1.65 -r1.66 src/lib/libc/time/zic.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2016-11-04 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Nov  5 01:08:58 UTC 2016

Modified Files:
src/lib/libc/time: private.h

Log Message:
lint knows about _Generic


To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 src/lib/libc/time/private.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2016-11-04 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Nov  4 19:41:53 UTC 2016

Modified Files:
src/lib/libc/time: Makefile NEWS localtime.c private.h tz-art.htm
tz-link.htm version zic.c
Added Files:
src/lib/libc/time: LICENSE

Log Message:
tzcode2016i


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/lib/libc/time/LICENSE
cvs rdiff -u -r1.35 -r1.36 src/lib/libc/time/Makefile
cvs rdiff -u -r1.18 -r1.19 src/lib/libc/time/NEWS
cvs rdiff -u -r1.104 -r1.105 src/lib/libc/time/localtime.c
cvs rdiff -u -r1.47 -r1.48 src/lib/libc/time/private.h
cvs rdiff -u -r1.14 -r1.15 src/lib/libc/time/tz-art.htm
cvs rdiff -u -r1.28 -r1.29 src/lib/libc/time/tz-link.htm
cvs rdiff -u -r1.1 -r1.2 src/lib/libc/time/version
cvs rdiff -u -r1.64 -r1.65 src/lib/libc/time/zic.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2016-10-20 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Oct 20 17:41:34 UTC 2016

Modified Files:
src/lib/libc/time: Makefile NEWS Theory private.h strftime.c
tz-link.htm zdump.c
Added Files:
src/lib/libc/time: version
Removed Files:
src/lib/libc/time: version.h

Log Message:
welcome to 2016h


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/lib/libc/time/Makefile
cvs rdiff -u -r1.17 -r1.18 src/lib/libc/time/NEWS
cvs rdiff -u -r1.21 -r1.22 src/lib/libc/time/Theory
cvs rdiff -u -r1.46 -r1.47 src/lib/libc/time/private.h
cvs rdiff -u -r1.37 -r1.38 src/lib/libc/time/strftime.c
cvs rdiff -u -r1.27 -r1.28 src/lib/libc/time/tz-link.htm
cvs rdiff -u -r0 -r1.1 src/lib/libc/time/version
cvs rdiff -u -r1.2 -r0 src/lib/libc/time/version.h
cvs rdiff -u -r1.44 -r1.45 src/lib/libc/time/zdump.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2016-10-07 Thread Robert Elz
Module Name:src
Committed By:   kre
Date:   Fri Oct  7 19:47:16 UTC 2016

Modified Files:
src/lib/libc/time: zic.c

Log Message:
Patch 0001 from upstream to tzcode2016g to restore full functionality
of zic -l


To generate a diff of this commit:
cvs rdiff -u -r1.63 -r1.64 src/lib/libc/time/zic.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2016-10-07 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Oct  7 15:29:42 UTC 2016

Modified Files:
src/lib/libc/time: Makefile NEWS README Theory localtime.c private.h
strftime.c tz-art.htm tz-how-to.html tz-link.htm tzfile.5 tzset.3
zdump.8 zdump.c zic.c

Log Message:
merge tzcode2016g


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/lib/libc/time/Makefile
cvs rdiff -u -r1.16 -r1.17 src/lib/libc/time/NEWS
cvs rdiff -u -r1.10 -r1.11 src/lib/libc/time/README
cvs rdiff -u -r1.20 -r1.21 src/lib/libc/time/Theory
cvs rdiff -u -r1.103 -r1.104 src/lib/libc/time/localtime.c
cvs rdiff -u -r1.45 -r1.46 src/lib/libc/time/private.h
cvs rdiff -u -r1.36 -r1.37 src/lib/libc/time/strftime.c
cvs rdiff -u -r1.13 -r1.14 src/lib/libc/time/tz-art.htm
cvs rdiff -u -r1.1 -r1.2 src/lib/libc/time/tz-how-to.html
cvs rdiff -u -r1.26 -r1.27 src/lib/libc/time/tz-link.htm
cvs rdiff -u -r1.23 -r1.24 src/lib/libc/time/tzfile.5
cvs rdiff -u -r1.34 -r1.35 src/lib/libc/time/tzset.3
cvs rdiff -u -r1.14 -r1.15 src/lib/libc/time/zdump.8
cvs rdiff -u -r1.43 -r1.44 src/lib/libc/time/zdump.c
cvs rdiff -u -r1.62 -r1.63 src/lib/libc/time/zic.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2016-09-22 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Thu Sep 22 23:18:11 UTC 2016

Modified Files:
src/lib/libc/time: strftime.3

Log Message:
Since the argument buf is earlier described as a buffer, replace all
references to "the array" with "the buffer" for consistency.

Bump date.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/lib/libc/time/strftime.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2016-09-20 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Sep 20 15:03:07 UTC 2016

Modified Files:
src/lib/libc/time: zic.c

Log Message:
use a define, and cast.


To generate a diff of this commit:
cvs rdiff -u -r1.61 -r1.62 src/lib/libc/time/zic.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2016-09-20 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Sep 20 13:09:08 UTC 2016

Modified Files:
src/lib/libc/time: zic.c

Log Message:
put back part of the code that determines the smallest of INT_MAX and
SIZE_MAX to avoid llvm truncation warning.


To generate a diff of this commit:
cvs rdiff -u -r1.60 -r1.61 src/lib/libc/time/zic.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2016-09-19 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Sep 19 18:43:23 UTC 2016

Modified Files:
src/lib/libc/time: zic.c

Log Message:
PR/51484: gson@: Fix off by one (wrong merge)


To generate a diff of this commit:
cvs rdiff -u -r1.59 -r1.60 src/lib/libc/time/zic.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2016-09-16 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Sep 16 17:12:06 UTC 2016

Modified Files:
src/lib/libc/time: Makefile NEWS Theory tz-art.htm tz-link.htm zic.c
Added Files:
src/lib/libc/time: tz-how-to.html

Log Message:
welcome to tzcond-2016f


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/lib/libc/time/Makefile
cvs rdiff -u -r1.15 -r1.16 src/lib/libc/time/NEWS
cvs rdiff -u -r1.19 -r1.20 src/lib/libc/time/Theory
cvs rdiff -u -r1.12 -r1.13 src/lib/libc/time/tz-art.htm
cvs rdiff -u -r0 -r1.1 src/lib/libc/time/tz-how-to.html
cvs rdiff -u -r1.25 -r1.26 src/lib/libc/time/tz-link.htm
cvs rdiff -u -r1.58 -r1.59 src/lib/libc/time/zic.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2016-05-30 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Tue May 31 03:47:49 UTC 2016

Modified Files:
src/lib/libc/time: zic.c

Log Message:
PR 51003 David Binderman: bzero struct before passing it around.

This is actually unnecessary as the call in question uses only fields
that have been set explicitly, but good practice regardless and it's
not like it's on a performance-critical path.


To generate a diff of this commit:
cvs rdiff -u -r1.57 -r1.58 src/lib/libc/time/zic.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2016-05-15 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun May 15 20:37:48 UTC 2016

Modified Files:
src/lib/libc/time: strptime.c

Log Message:
remove stray debugging.


To generate a diff of this commit:
cvs rdiff -u -r1.59 -r1.60 src/lib/libc/time/strptime.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2016-05-15 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun May 15 20:36:42 UTC 2016

Modified Files:
src/lib/libc/time: strptime.c

Log Message:
Bail out if the string does not look like a timezone (is empty or does not
start with a letter or a number). tzparse("") or tzparse(".45") don't fail.


To generate a diff of this commit:
cvs rdiff -u -r1.58 -r1.59 src/lib/libc/time/strptime.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2016-03-19 Thread Brian Ginsbach
Module Name:src
Committed By:   ginsbach
Date:   Fri Mar 18 12:41:25 UTC 2016

Modified Files:
src/lib/libc/time: localtime.c

Log Message:
Use the correct upper bounds for the types array.  The correct upper
bound is typecnt not timecnt.  Now perpetual 'standard' time zones
will work correctly as they have a typecnt of 1 but a timecnt of 0.


To generate a diff of this commit:
cvs rdiff -u -r1.102 -r1.103 src/lib/libc/time/localtime.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2016-03-15 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Mar 15 15:16:01 UTC 2016

Modified Files:
src/lib/libc/time: Makefile NEWS README Theory localtime.c private.h
strftime.c tz-art.htm tz-link.htm tzselect.ksh zdump.c zic.c
Added Files:
src/lib/libc/time: CONTRIBUTING

Log Message:
Sync with 2016b


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/lib/libc/time/CONTRIBUTING
cvs rdiff -u -r1.31 -r1.32 src/lib/libc/time/Makefile
cvs rdiff -u -r1.14 -r1.15 src/lib/libc/time/NEWS \
src/lib/libc/time/tzselect.ksh
cvs rdiff -u -r1.9 -r1.10 src/lib/libc/time/README
cvs rdiff -u -r1.18 -r1.19 src/lib/libc/time/Theory
cvs rdiff -u -r1.101 -r1.102 src/lib/libc/time/localtime.c
cvs rdiff -u -r1.44 -r1.45 src/lib/libc/time/private.h
cvs rdiff -u -r1.35 -r1.36 src/lib/libc/time/strftime.c
cvs rdiff -u -r1.11 -r1.12 src/lib/libc/time/tz-art.htm
cvs rdiff -u -r1.24 -r1.25 src/lib/libc/time/tz-link.htm
cvs rdiff -u -r1.42 -r1.43 src/lib/libc/time/zdump.c
cvs rdiff -u -r1.56 -r1.57 src/lib/libc/time/zic.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2016-02-20 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Feb 20 20:11:37 UTC 2016

Modified Files:
src/lib/libc/time: localtime.c

Log Message:
PR/50133: Martin Husemann: Can't cache $TZ.
XXX: Pullup-7


To generate a diff of this commit:
cvs rdiff -u -r1.100 -r1.101 src/lib/libc/time/localtime.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2015-10-30 Thread Brian Ginsbach
Module Name:src
Committed By:   ginsbach
Date:   Sat Oct 31 03:42:00 UTC 2015

Modified Files:
src/lib/libc/time: strptime.c

Log Message:
Don't attempt to set TM_ZONE (name) for 'J' as isdst isn't known.


To generate a diff of this commit:
cvs rdiff -u -r1.57 -r1.58 src/lib/libc/time/strptime.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2015-10-30 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Oct 31 02:14:08 UTC 2015

Modified Files:
src/lib/libc/time: strptime.c

Log Message:
make %Z and %z understand the same strings.


To generate a diff of this commit:
cvs rdiff -u -r1.56 -r1.57 src/lib/libc/time/strptime.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2015-10-30 Thread Brian Ginsbach
Module Name:src
Committed By:   ginsbach
Date:   Sat Oct 31 02:09:06 UTC 2015

Modified Files:
src/lib/libc/time: strptime.3

Log Message:
- Add reference to RFC-3339
- Add J to military / nautical time zone description


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/lib/libc/time/strptime.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2015-10-30 Thread Brian Ginsbach
Module Name:src
Committed By:   ginsbach
Date:   Fri Oct 30 21:36:25 UTC 2015

Modified Files:
src/lib/libc/time: strptime.c

Log Message:
Add 'J' (Juliett) as military time zone name meaning the local time zone.


To generate a diff of this commit:
cvs rdiff -u -r1.55 -r1.56 src/lib/libc/time/strptime.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2015-10-30 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Oct 30 18:20:16 UTC 2015

Modified Files:
src/lib/libc/time: strptime.c

Log Message:
drop stray #endif


To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.55 src/lib/libc/time/strptime.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2015-10-30 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Oct 30 18:04:42 UTC 2015

Modified Files:
src/lib/libc/time: strptime.c

Log Message:
revert timezone() ifdef; it is wrong (pointed out by ginsbach)


To generate a diff of this commit:
cvs rdiff -u -r1.53 -r1.54 src/lib/libc/time/strptime.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2015-10-29 Thread Brian Ginsbach
Module Name:src
Committed By:   ginsbach
Date:   Fri Oct 30 01:49:36 UTC 2015

Modified Files:
src/lib/libc/time: strptime.c

Log Message:
Reject timezone offsets more than 12 hours (east or west).


To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 src/lib/libc/time/strptime.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2015-10-29 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Thu Oct 29 22:42:55 UTC 2015

Modified Files:
src/lib/libc/time: strptime.3 tzset.3

Log Message:
Whitespace.


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/lib/libc/time/strptime.3
cvs rdiff -u -r1.33 -r1.34 src/lib/libc/time/tzset.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2015-10-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Oct 29 19:18:32 UTC 2015

Modified Files:
src/lib/libc/time: localtime.c

Log Message:
another lint warning for compat.


To generate a diff of this commit:
cvs rdiff -u -r1.99 -r1.100 src/lib/libc/time/localtime.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2015-10-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Oct 29 19:18:19 UTC 2015

Modified Files:
src/lib/libc/time: strptime.c

Log Message:
- use #defined constants (from gisbach)
- back to setting tm_zone to NULL when we don't know.


To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/lib/libc/time/strptime.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2015-10-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Oct 29 17:54:49 UTC 2015

Modified Files:
src/lib/libc/time: strptime.3 strptime.c

Log Message:
PR/50380: Balazs Scheidler: strptime() returns incorrect values in tm_gmtoff
- Always offset in seconds.
- Handle arbitrary timezones.


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/lib/libc/time/strptime.3
cvs rdiff -u -r1.49 -r1.50 src/lib/libc/time/strptime.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2015-10-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Oct 29 17:53:05 UTC 2015

Modified Files:
src/lib/libc/time: Makefile.inc

Log Message:
Add tzgetgmtoff(3)


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/lib/libc/time/Makefile.inc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2015-10-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Oct 29 17:51:58 UTC 2015

Modified Files:
src/lib/libc/time: tzset.3

Log Message:
Document tzgetgmtoff(3)


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/lib/libc/time/tzset.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2015-10-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Oct 29 17:49:24 UTC 2015

Modified Files:
src/lib/libc/time: localtime.c

Log Message:
Add tzgetgmtoff, delint compat


To generate a diff of this commit:
cvs rdiff -u -r1.98 -r1.99 src/lib/libc/time/localtime.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2015-10-09 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Oct  9 17:21:45 UTC 2015

Modified Files:
src/lib/libc/time: Makefile NEWS localtime.c private.h strftime.c
strptime.c tz-art.htm tz-link.htm tzfile.5 zic.c

Log Message:
Release 2015g - 2015-10-01 00:39:51 -0700

  Changes affecting code

localtime no longer mishandles America/Anchorage after 2037.
(Thanks to Bradley White for reporting the bug.)

The localtime module allows the variables 'timezone', 'daylight',
and 'altzone' to be in common storage shared with other modules,
and declares them in case the system  does not.
(Problems reported by Kees Dekker.)

On platforms with tm_zone, strftime.c now assumes it is not NULL.
This simplifies the code and is consistent with zdump.c.
(Problem reported by Christos Zoulas.)

  Changes affecting documentation

   The tzfile man page now documents that transition times denote the
   starts (not the ends) of the corresponding time periods.
   (Ambiguity reported by Bill Seymour.)


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/lib/libc/time/Makefile
cvs rdiff -u -r1.13 -r1.14 src/lib/libc/time/NEWS
cvs rdiff -u -r1.97 -r1.98 src/lib/libc/time/localtime.c
cvs rdiff -u -r1.43 -r1.44 src/lib/libc/time/private.h
cvs rdiff -u -r1.34 -r1.35 src/lib/libc/time/strftime.c
cvs rdiff -u -r1.48 -r1.49 src/lib/libc/time/strptime.c
cvs rdiff -u -r1.10 -r1.11 src/lib/libc/time/tz-art.htm
cvs rdiff -u -r1.23 -r1.24 src/lib/libc/time/tz-link.htm
cvs rdiff -u -r1.22 -r1.23 src/lib/libc/time/tzfile.5
cvs rdiff -u -r1.55 -r1.56 src/lib/libc/time/zic.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2015-08-18 Thread Jeff Rizzo
Module Name:src
Committed By:   riz
Date:   Tue Aug 18 16:54:27 UTC 2015

Modified Files:
src/lib/libc/time: localtime.c

Log Message:
Remove second 'const' declaration, to hopefully fix clang builds.


To generate a diff of this commit:
cvs rdiff -u -r1.96 -r1.97 src/lib/libc/time/localtime.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2015-08-13 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Aug 13 11:21:18 UTC 2015

Modified Files:
src/lib/libc/time: Makefile NEWS Theory difftime.c localtime.c
private.h strftime.c tz-art.htm tz-link.htm zdump.c zic.8 zic.c

Log Message:
merge 2015f


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/lib/libc/time/Makefile
cvs rdiff -u -r1.12 -r1.13 src/lib/libc/time/NEWS
cvs rdiff -u -r1.17 -r1.18 src/lib/libc/time/Theory
cvs rdiff -u -r1.15 -r1.16 src/lib/libc/time/difftime.c
cvs rdiff -u -r1.95 -r1.96 src/lib/libc/time/localtime.c
cvs rdiff -u -r1.42 -r1.43 src/lib/libc/time/private.h
cvs rdiff -u -r1.33 -r1.34 src/lib/libc/time/strftime.c
cvs rdiff -u -r1.9 -r1.10 src/lib/libc/time/tz-art.htm
cvs rdiff -u -r1.22 -r1.23 src/lib/libc/time/tz-link.htm
cvs rdiff -u -r1.41 -r1.42 src/lib/libc/time/zdump.c
cvs rdiff -u -r1.25 -r1.26 src/lib/libc/time/zic.8
cvs rdiff -u -r1.54 -r1.55 src/lib/libc/time/zic.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2015-07-29 Thread Brian Ginsbach
Module Name:src
Committed By:   ginsbach
Date:   Wed Jul 29 20:32:54 UTC 2015

Modified Files:
src/lib/libc/time: strptime.c

Log Message:
Only apply am/pm adjustment to tm_hour when it has actually been parsed.


To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 src/lib/libc/time/strptime.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2015-07-22 Thread Brian Ginsbach
Module Name:src
Committed By:   ginsbach
Date:   Wed Jul 22 13:33:59 UTC 2015

Modified Files:
src/lib/libc/time: strptime.c

Log Message:
More KNF style changes -- consistent use of whitespace in #defines.


To generate a diff of this commit:
cvs rdiff -u -r1.46 -r1.47 src/lib/libc/time/strptime.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2015-07-20 Thread Brian Ginsbach
Module Name:src
Committed By:   ginsbach
Date:   Mon Jul 20 14:37:11 UTC 2015

Modified Files:
src/lib/libc/time: strptime.c

Log Message:
KNF and additional comments


To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 src/lib/libc/time/strptime.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2015-07-15 Thread Brian Ginsbach
Module Name:src
Committed By:   ginsbach
Date:   Wed Jul 15 13:54:38 UTC 2015

Modified Files:
src/lib/libc/time: strptime.c

Log Message:
Don't set state when parsing any timezone (%z) information.  The '+' in
this case isn't the same as the FreeBSD '%+' str[fp]time() (GNU) extension.


To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 src/lib/libc/time/strptime.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2015-07-14 Thread Brian Ginsbach
Module Name:src
Committed By:   ginsbach
Date:   Tue Jul 14 18:07:17 UTC 2015

Modified Files:
src/lib/libc/time: strptime.c

Log Message:
Set S_WDAY state for %u (same as it is set for %w).


To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.44 src/lib/libc/time/strptime.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2015-07-13 Thread Brian Ginsbach
Module Name:src
Committed By:   ginsbach
Date:   Mon Jul 13 17:45:16 UTC 2015

Modified Files:
src/lib/libc/time: strptime.c

Log Message:
Switch to using isleap() and isleap_sum() macros from  to be
consistent with strftime.c and localtime.c.


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/lib/libc/time/strptime.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2015-07-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Jul 11 16:41:08 UTC 2015

Removed Files:
src/lib/libc/time: tzfile.h

Log Message:
remove local copy of tzfile.h


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r0 src/lib/libc/time/tzfile.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2015-07-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Jul 11 16:09:15 UTC 2015

Modified Files:
src/lib/libc/time: tzcode2netbsd

Log Message:
- don't copy the man pages anymore. they have been converted to mdoc
  format.
- don't delete extra files, but mention the 'import' process


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/lib/libc/time/tzcode2netbsd

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2015-07-08 Thread Brian Ginsbach
Module Name:src
Committed By:   ginsbach
Date:   Wed Jul  8 19:48:20 UTC 2015

Modified Files:
src/lib/libc/time: strptime.c

Log Message:
Add macros to clarify what (parse) state is needed to calculate 'missing'
tm fields.


To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 src/lib/libc/time/strptime.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2015-07-08 Thread Brian Ginsbach
Module Name:src
Committed By:   ginsbach
Date:   Wed Jul  8 18:44:09 UTC 2015

Modified Files:
src/lib/libc/time: strptime.c


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/lib/libc/time/strptime.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2015-07-03 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Jul  3 13:06:55 UTC 2015

Modified Files:
src/lib/libc/time: strptime.c

Log Message:
PR/50009: David CARLIER: Enhance strptime to fill out more fields when it
can. From FreeBSD.


To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/lib/libc/time/strptime.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2015-06-22 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Jun 22 17:43:23 UTC 2015

Modified Files:
src/lib/libc/time: private.h

Log Message:
don't define statics we don't need


To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 src/lib/libc/time/private.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2015-06-21 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jun 21 16:06:51 UTC 2015

Modified Files:
src/lib/libc/time: Makefile NEWS localtime.c private.h tzselect.ksh
zdump.c zic.8 zic.c

Log Message:
merge tzcode2015e:

  Changes affecting code

When displaying data, tzselect converts it to the current locale's
encoding if the iconv command works.  (Problem reported by random832.)

tzselect no longer mishandles Dominica, fixing a bug introduced
in Release 2014f.  (Problem reported by Owen Leibman.)

zic -l no longer fails when compiled with -DTZDEFAULT=\"/etc/localtime\".
This fixes a bug introduced in Release 2014f.
(Problem reported by Leonardo Chiquitto.)


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/lib/libc/time/Makefile
cvs rdiff -u -r1.11 -r1.12 src/lib/libc/time/NEWS
cvs rdiff -u -r1.94 -r1.95 src/lib/libc/time/localtime.c
cvs rdiff -u -r1.40 -r1.41 src/lib/libc/time/private.h \
src/lib/libc/time/zdump.c
cvs rdiff -u -r1.13 -r1.14 src/lib/libc/time/tzselect.ksh
cvs rdiff -u -r1.24 -r1.25 src/lib/libc/time/zic.8
cvs rdiff -u -r1.53 -r1.54 src/lib/libc/time/zic.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2015-04-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Apr 28 17:00:24 UTC 2015

Modified Files:
src/lib/libc/time: Makefile NEWS private.h tz-link.htm zic.c
Removed Files:
src/lib/libc/time: ialloc.c scheck.c

Log Message:
welcome to tzcode 2015d (zic performance improvements and cleanups)


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/lib/libc/time/Makefile
cvs rdiff -u -r1.10 -r1.11 src/lib/libc/time/NEWS
cvs rdiff -u -r1.9 -r0 src/lib/libc/time/ialloc.c
cvs rdiff -u -r1.39 -r1.40 src/lib/libc/time/private.h
cvs rdiff -u -r1.12 -r0 src/lib/libc/time/scheck.c
cvs rdiff -u -r1.21 -r1.22 src/lib/libc/time/tz-link.htm
cvs rdiff -u -r1.52 -r1.53 src/lib/libc/time/zic.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2015-04-06 Thread Brian Ginsbach
Module Name:src
Committed By:   ginsbach
Date:   Mon Apr  6 14:38:22 UTC 2015

Modified Files:
src/lib/libc/time: strptime.3 strptime.c

Log Message:
Add UTC as a synonym for GMT (%Z).  [from FreeBSD]


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/lib/libc/time/strptime.3
cvs rdiff -u -r1.38 -r1.39 src/lib/libc/time/strptime.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2015-04-05 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Sun Apr  5 08:36:38 UTC 2015

Modified Files:
src/lib/libc/time: tzset.3

Log Message:
Remove dangling cross-ref to localtime(3).  There's another cross-ref in
the next sentence that actually makes sense.


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/lib/libc/time/tzset.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2015-04-03 Thread Brian Ginsbach
Module Name:src
Committed By:   ginsbach
Date:   Fri Apr  3 15:52:51 UTC 2015

Modified Files:
src/lib/libc/time: strptime.3

Log Message:
Fix spelling; time zone is two words not one.


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/lib/libc/time/strptime.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2015-03-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Mar 24 20:01:18 UTC 2015

Modified Files:
src/lib/libc/time: Makefile NEWS Theory localtime.c private.h

Log Message:
merge 2015b


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/lib/libc/time/Makefile
cvs rdiff -u -r1.9 -r1.10 src/lib/libc/time/NEWS
cvs rdiff -u -r1.16 -r1.17 src/lib/libc/time/Theory
cvs rdiff -u -r1.93 -r1.94 src/lib/libc/time/localtime.c
cvs rdiff -u -r1.38 -r1.39 src/lib/libc/time/private.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2015-01-31 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Jan 31 18:55:17 UTC 2015

Modified Files:
src/lib/libc/time: Makefile NEWS localtime.c tz-art.htm tz-link.htm
tzselect.ksh

Log Message:
merge tzcode2015a:

tzalloc now scrubs time zone abbreviations compatibly with the way
that tzset always has, by replacing invalid bytes with '_' and by
shortening too-long abbreviations.


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/lib/libc/time/Makefile
cvs rdiff -u -r1.8 -r1.9 src/lib/libc/time/NEWS src/lib/libc/time/tz-art.htm
cvs rdiff -u -r1.92 -r1.93 src/lib/libc/time/localtime.c
cvs rdiff -u -r1.20 -r1.21 src/lib/libc/time/tz-link.htm
cvs rdiff -u -r1.12 -r1.13 src/lib/libc/time/tzselect.ksh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/time

2014-11-17 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Nov 18 01:59:00 UTC 2014

Modified Files:
src/lib/libc/time: Makefile NEWS tz-link.htm

Log Message:
welcome to 2014j


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/lib/libc/time/Makefile
cvs rdiff -u -r1.7 -r1.8 src/lib/libc/time/NEWS
cvs rdiff -u -r1.19 -r1.20 src/lib/libc/time/tz-link.htm

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



  1   2   3   >