test, make a comparison in struct-7 test actually

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
Revert "fix, PEBKAC, don't pass uninitialised args to dt_strfdt()"

This reverts commit f8e999dba384b0dd94aa718a1a6ad6f9927c6523.
Revert "minor, extend dt_strfdt() to take a zdiff parameter, ..."

This reverts commit 420d65d36d0eade22a210c3379da37f392ec0046.
Revert "minor, use pointers in dtz_forgetz() and dtz_enrichz() and return the difference applied"

This reverts commit 88092348e8318da238622c1034df2868b55d2d55.
minor, bring back zdiff handling (and %Z)

Squeeze the time zone difference in a struct dt_dt_s' 6bits of
space left by struct dt_d_s.
This means zone differences range from -16 hours to +16 hours
with a resolution of 15 minutes.

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
Merge branch 'feat/zdiff-in-dt_s' into next

* feat/zdiff-in-dt_s:
  minor, bring back zdiff handling (and %Z)
  Revert "minor, use pointers in dtz_forgetz() and dtz_enrichz() and return the difference applied"
  Revert "minor, extend dt_strfdt() to take a zdiff parameter, ..."
  Revert "fix, PEBKAC, don't pass uninitialised args to dt_strfdt()"
  test, make a comparison in struct-7 test actually
fix, PEBKAC, 1601 lilian and julian dates are off by one

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
fix, PEBKAC, for __jan00_daisy() and 1601 base use original YEAR arg for fix-ups

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
hygiene, refer to dt-core's __to_unix_epoch() in dt-core-tz-glue

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
fix, PEBKAC, for daisy-based epoch conversions define the offset in terms of daisy's base year

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
fix, PEBKAC, for 1753-based daisy dates compute the number of missing (leap) days properly

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
fix, lilian and julian offsets for 1753-based dates are off-by-one

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
cosmetics, add whitespace between code and decls

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
major, extend date range to 1601-01-01

dateutils assume the Gregorian switch has taken place in 1582.

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
Merge branch 'feat/extend-range' into next

* feat/extend-range:
  major, extend date range to 1601-01-01
  cosmetics, add whitespace between code and decls
  fix, lilian and julian offsets for 1753-based dates are off-by-one
  fix, PEBKAC, for 1753-based daisy dates compute the number of missing (leap) days properly
  fix, PEBKAC, for daisy-based epoch conversions define the offset in terms of daisy's base year
  hygiene, refer to dt-core's __to_unix_epoch() in dt-core-tz-glue
  fix, PEBKAC, for __jan00_daisy() and 1601 base use original YEAR arg for fix-ups
  fix, PEBKAC, 1601 lilian and julian dates are off by one
minor, allow no left hand side in tzconv.m mex

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
Merge branch 'contrib/mex-tzconv' into next

* contrib/mex-tzconv:
  minor, allow no left hand side in tzconv.m mex
minor, avoid c99 (reverse) inlines and provide a public dt_to_unix_epoch() and dt_to_gps_epoch()

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
chore, hygiene, eliminate __to_unix_epoch() copy in ltrcc, use public dt_to_unix_epoch() instead

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
hygiene, rewrite tuidiv()/tuimod() calls in dt_tadd() in terms of divrem() inline

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>