busybox/testsuite/date
Ron Yorston 9fe1548bbf date,touch: allow timezone offsets in dates
Allow ISO 8601 style dates to include a timezone offset.  Like
the '@' format these dates aren't relative to the user's current
timezone and shouldn't be subject to DST adjustment.

- The implementation uses the strptime() '%z' format specifier.
  This an extension which may not be available so the use of
  timezones is a configuration option.

- The 'touch' applet has been updated to respect whether DST
  adjustment is required, matching 'date'.

function                                             old     new   delta
parse_datestr                                        624     730    +106
static.fmt_str                                       106     136     +30
touch_main                                           388     392      +4
date_main                                            818     819      +1
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/0 up/down: 141/0)             Total: 141 bytes

Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2021-09-17 00:11:30 +02:00
..
date-@-works date: preserve isdst value if date is in time_t (unix time) format 2010-12-31 05:21:51 +01:00
date-format-works partially fix date testsuite 2008-04-24 19:37:11 +00:00
date-R-works randomconfig fixes 2011-08-10 10:45:48 +02:00
date-timezone date,touch: allow timezone offsets in dates 2021-09-17 00:11:30 +02:00
date-u-works
date-works testsuite: disable tests for no longer supported bbox-specific date formats 2013-12-31 18:57:39 +01:00
date-works-1 testsuite: disable tests for no longer supported bbox-specific date formats 2013-12-31 18:57:39 +01:00