Skip to content

Instantly share code, notes, and snippets.

@Birdie0
Created May 13, 2025 11:15
Show Gist options
  • Save Birdie0/ba81a2d9a721eda680f83a78eab3829a to your computer and use it in GitHub Desktop.
Save Birdie0/ba81a2d9a721eda680f83a78eab3829a to your computer and use it in GitHub Desktop.
#!/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