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

parsedate: Parse and reformat dates and times #74

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

tsibley
Copy link
Collaborator

@tsibley tsibley commented Feb 25, 2016

Basically a front-end to Time::ParseDate, which offers more control than Date::Manip::DM5's ParseDate(). The fatpack recs, already 7.4MB, is increased only 28KB by Time::ParseDate, so there's no huge loss to avoid it. POSIX, luckily, is part of core.

@tsibley
Copy link
Collaborator Author

tsibley commented Feb 25, 2016

Yay! Travis caught a problem with older Perls I didn't realize would be an issue. I'll fix it up tomorrow.

@tsibley
Copy link
Collaborator Author

tsibley commented Feb 26, 2016

This branch is now good to go. @benbernard, would you take a look?


my $options = {
'key|k=s' => sub { $this->{'KEYS'}->add_groups($_[1]) },
'format|f=s' => \($this->{'FORMAT'}),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hadn't seen this ($hash->{key}) format before, cool!

@benbernard
Copy link
Owner

Looks great! I had a few comments, but feel free to merge as-is

@tsibley
Copy link
Collaborator Author

tsibley commented Feb 28, 2016

Thanks for the notes! I'll make the changes you recommended and merge away.

@tsibley
Copy link
Collaborator Author

tsibley commented Feb 28, 2016

In adding some tests, I just found a bug (timezones, naturally), so I'm going to fix that and repush at some point (probably not today).

@benbernard
Copy link
Owner

awesome, glad you found it!

On Sun, Feb 28, 2016 at 11:53 AM Thomas Sibley notifications@github.com
wrote:

In adding some tests, I just found a bug (timezones, naturally), so I'm
going to fix that and repush at some point (probably not today).


Reply to this email directly or view it on GitHub
#74 (comment)
.

Naming tests is often very helpful in debugging to ensure you're looking
at the right thing and to more quickly get a sense of what's broken.
Basically a front-end to Time::ParseDate, which offers more control than
Date::Manip::DM5's ParseDate().  The fatpack recs, already 7.4MB, is
increased only 28KB by Time::ParseDate, so there's no huge loss to avoid
it.  POSIX, luckily, is part of core.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants