Skip to content

Instantly share code, notes, and snippets.

@osamu2001
Last active December 20, 2015 13:18
Show Gist options
  • Save osamu2001/6137242 to your computer and use it in GitHub Desktop.
Save osamu2001/6137242 to your computer and use it in GitHub Desktop.
print mtime
#!/usr/bin/ruby
puts File.stat(ARGV[0]).mtime.strftime("%F %H.%M.%S.#{ARGV[1]}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment