Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make Date more tolerant, e.g. ("2014-1-31") #3388

Closed
p6rt opened this issue May 20, 2014 · 4 comments
Closed

make Date more tolerant, e.g. ("2014-1-31") #3388

p6rt opened this issue May 20, 2014 · 4 comments

Comments

@p6rt
Copy link

p6rt commented May 20, 2014

Migrated from rt.perl.org#121926 (status was 'rejected')

Searchable as RT121926$

@p6rt
Copy link
Author

p6rt commented May 20, 2014

From hans.ginzel@generali.com

Hello,

make Date more tolerant, please. Ignore missing leading zero.

my $d = Date.new("2014-1-31");

Invalid Date string '2014-1-31'; use yyyy-mm-dd instead
  in method new at gen/parrot/CORE.setting​:14941
  in method new at gen/parrot/CORE.setting​:795

Thanks
HG

@p6rt
Copy link
Author

p6rt commented May 22, 2014

From @moritz

On 20.05.2014 15​:05, Hans Ginzel (via RT) wrote​:

# New Ticket Created by Hans Ginzel
# Please include the string​: [perl #​121926]
# in the subject line of all future correspondence about this issue.
# <URL​: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=121926 >

Hello,

make Date more tolerant, please. Ignore missing leading zero.

No. Date only supports ISO8601 dates by design; a more lenient date
parser is out of scope of the core Date class. Either write a module, or
split the date and pass the list to Date.new.

Cheers,
Moritz

@p6rt
Copy link
Author

p6rt commented May 22, 2014

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented May 22, 2014

@moritz - Status changed from 'open' to 'rejected'

@p6rt p6rt closed this as completed May 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant