Skip to content

Instantly share code, notes, and snippets.

@francois
Last active January 3, 2016 09:19
Show Gist options
  • Save francois/8442326 to your computer and use it in GitHub Desktop.
Save francois/8442326 to your computer and use it in GitHub Desktop.
int = Seevibes::Interval.new("1w")
int.period == 1
int.to_sql == "1 week"
int.unit == "week"
int.to_s == "1w"
int = Seevibes::IntervalParser.parse_interval("1w")
int.period == 1
int.to_sql == "1 week"
int.unit == "week"
int.to_s == "1w"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment