Skip to content

Add "chronic" gem to deal with ambiguous dates? #87

Description

@dannguyen

I know [mojombo/chronic] is a big gem, but it smoothes a few things with date parsing. In particular, it has some conveniences for ambiguous dates.

Example: Sen. Meehan's Drupal-views-powered press release page which outputs dates in the ambiguous format of "03 Feb" (issue: #84, my recent commit: dannguyen@91d188e)

A possible solution is that, for each page of press releases, download and parse the first result, extract the full date, then use chronic's :context or :now arguments to disambiguate the dates for the rest of the list of press releases. It's possible to hand-roll a solution, but chronic is probably more stable without being too much of a pain of a dependency.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions