Up to [cvs.NetBSD.org] / src / lib / libutil
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: netbsd-7-0
Revision 1.16.6.4 / (download) - annotate - [select for diffs], Sat Oct 11 16:56:21 2014 UTC (9 years, 5 months ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
netbsd-7-2-RELEASE,
netbsd-7-1-RELEASE,
netbsd-7-1-RC2,
netbsd-7-1-RC1,
netbsd-7-1-2-RELEASE,
netbsd-7-1-1-RELEASE,
netbsd-7-1,
netbsd-7-0-RELEASE,
netbsd-7-0-RC3,
netbsd-7-0-RC2,
netbsd-7-0-RC1,
netbsd-7-0-2-RELEASE,
netbsd-7-0-1-RELEASE,
netbsd-7-0
Changes since 1.16.6.3: +37 -45
lines
Diff to previous 1.16.6.3 (colored) to branchpoint 1.16 (colored) next main 1.17 (colored)
Pull up following revision(s) (requested by apb in ticket #135): lib/libutil/parsedate.y: revision 1.20 Improved handling of local times. * A magic value USE_LOCAL_TIME (defined as 99999) may be passed as the Timezone to Convert(), instructing it to use mktime() to work in the local time zone, instead of using mktime_z to work in UTC (and then adding the specified timezone offset). * Some old code is removed now that there's no need to find the local timezone offset. * Allow either one or both of the now and zone arguments to parsedate() to be NULL, treating them independently. Previously, if either one was NULL, the other was ignored. * If the zone argument is specified, then the current date is calculated in the specified zone, not in local time. Also add some disabled debug code. This should fix PR lib/47916.