Skip to content

Instantly share code, notes, and snippets.

View arnlen's full-sized avatar

Arnaud Lenglet arnlen

View GitHub Profile
@jackrg
jackrg / dates_international.rb
Created June 13, 2012 23:38
Ruby International Date Parser
# -*- coding: utf-8 -*-
#
# Purpose:
# Extend the date parsing capabilities of Ruby to work with dates with international month names.
#
# Usage:
#
# Date.parse_international(date_string)
# DateTime.parse_international(date_string)
# date_string.to_international_date