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
..
2017-10-05 15:19:25 +02:00
2021-09-09 23:45:13 +02:00
2021-02-03 20:52:40 +01:00
2021-06-14 20:47:20 +02:00
2021-06-14 20:47:20 +02:00
2021-06-14 20:47:20 +02:00
2017-08-04 19:55:01 +02:00
2021-06-22 10:24:06 +02:00
2018-12-28 03:20:17 +01:00
2018-06-06 15:16:48 +02:00
2021-08-15 18:26:56 +02:00
2021-07-20 16:29:22 +02:00
2021-09-17 00:11:30 +02:00
2021-08-15 23:05:30 +02:00
2021-09-11 00:47:03 +02:00
2018-12-28 03:20:17 +01:00
2018-12-28 03:20:17 +01:00
2021-06-16 17:45:28 +02:00
2021-06-14 20:47:20 +02:00
2021-06-17 13:39:46 +02:00
2021-02-03 20:52:40 +01:00
2021-06-13 01:08:48 +02:00
2020-12-23 02:03:04 +01:00
2017-07-21 09:50:55 +02:00
2021-04-14 15:15:45 +02:00
2021-06-02 04:01:10 +02:00
2018-12-28 03:20:17 +01:00
2008-10-29 00:27:31 +00:00
2021-06-14 20:47:20 +02:00
2019-07-02 11:35:03 +02:00
2017-01-10 15:13:30 +01:00
2018-12-28 03:20:17 +01:00
2020-12-13 22:34:05 +01:00
2019-07-02 11:35:03 +02:00
2021-06-25 19:48:34 +02:00
2020-11-27 15:55:46 +01:00
2020-12-13 19:04:19 +01:00
2018-12-28 03:20:17 +01:00
2021-01-04 13:28:28 +01:00
2018-12-28 03:20:17 +01:00
2021-06-25 00:23:29 +02:00
2018-12-28 03:20:17 +01:00
2021-02-02 17:37:41 +01:00
2017-10-05 15:19:25 +02:00
2021-06-24 13:47:49 +02:00
2021-02-03 20:52:40 +01:00
2017-08-02 14:26:33 +02:00
2021-02-03 20:52:40 +01:00
2018-12-28 03:20:17 +01:00
2021-03-23 13:50:02 +01:00
2018-12-28 03:20:17 +01:00
2018-12-28 03:20:17 +01:00
2021-04-14 15:15:45 +02:00
2019-07-02 11:35:03 +02:00
2020-12-13 19:04:19 +01:00
2018-12-28 03:20:17 +01:00
2021-06-20 13:48:21 +02:00
2021-09-07 22:51:42 +02:00
2021-03-23 13:50:02 +01:00
2021-06-17 00:36:13 +02:00
2020-11-30 13:03:03 +01:00
2021-02-03 20:52:40 +01:00
2021-02-03 20:52:40 +01:00
2018-12-28 03:20:17 +01:00
2019-04-02 14:55:29 +02:00
2018-12-28 03:20:17 +01:00
2021-06-02 05:17:44 +02:00
2019-10-07 14:25:45 +02:00
2010-08-16 20:14:46 +02:00
2020-11-30 13:03:03 +01:00
2020-12-18 04:12:51 +01:00
2021-09-17 00:11:30 +02:00
2019-07-02 11:35:03 +02:00
2017-07-21 09:50:55 +02:00
2021-04-14 15:15:45 +02:00
2021-06-13 03:12:09 +02:00
2021-06-13 03:12:09 +02:00
2021-06-24 23:37:06 +02:00
2018-12-28 03:20:17 +01:00
2018-12-28 03:20:17 +01:00
2021-06-13 23:58:17 +02:00
2019-07-02 11:35:03 +02:00
2021-04-14 15:15:45 +02:00
2021-06-15 10:00:18 +02:00
2018-12-28 03:20:17 +01:00
2021-06-13 03:12:09 +02:00