Created
April 8, 2013 16:42
-
-
Save alexdean/5338328 to your computer and use it in GitHub Desktop.
convert time string to unix timestamp
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 | |
require 'time' | |
t = Time.parse(ARGV[0]) | |
puts "#{t.iso8601} -> #{t.to_i}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment