-
-
Save Birdie0/ba81a2d9a721eda680f83a78eab3829a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# frozen_string_literal: true | |
require 'bundler/inline' | |
gemfile do | |
source 'https://rubygems.org' | |
gem 'chronic', '~> 0.10.2' | |
end | |
if (parsed = Chronic.parse(ARGV.join(' '))) | |
puts parsed.iso8601 | |
else | |
exit 1 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment