mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
date: add tests and NEWS for dd.mm.yy support
* NEWS: Mention the new feature. * tests/date/date.pl: Add test cases.
This commit is contained in:
1 parent
c01781e09b
commit
e2c7db6c70
2 files changed
+11
No files matched your search
@@ -7,6 +7,11 @@ GNU coreutils NEWS -*- outline -*-
|
||||
'kill --help' now has links to valid anchors in the html manual.
|
||||
[bug introduced in coreutils-9.10]
|
||||
|
||||
** New Features
|
||||
|
||||
'date --date' now parses dot delimited dd.mm.yy format common in Europe.
|
||||
This is in addition to the already supported mm/dd/yy and yy-mm-dd formats.
|
||||
|
||||
** Build-related
|
||||
|
||||
./configure --enable-single-binary=hardlinks is now supported on systems
|
||||
|
||||
@@ -196,6 +196,12 @@ my @Tests =
|
||||
['moname-d-y', '--iso -d May-23-2003', {OUT=>"2003-05-23"}],
|
||||
['moname-d-y-r', '--rfc-3339=date -d May-23-2003', {OUT=>"2003-05-23"}],
|
||||
|
||||
# Ensure we can parse DAY.MONTH.YEAR and its short form DAY.MONTH.
|
||||
['european-0', "-I -d '24.01.2026'", {OUT=>"2026-01-24"}],
|
||||
['european-1', "-I -d '24.1.2026'", {OUT=>"2026-01-24"}],
|
||||
['european-2', "-d '24.01.' +%m-%d", {OUT=>"01-24"}],
|
||||
['european-3', "-d '1.2.' +%m-%d", {OUT=>"02-01"}],
|
||||
|
||||
['epoch', '--iso=sec -d @31536000',
|
||||
{OUT=>"1971-01-01T00:00:00+00:00"}],
|
||||
['epoch-r', '--rfc-3339=sec -d @31536000',
|
||||
|
||||
Reference in new issue
Block a user