Skip to content

Instantly share code, notes, and snippets.

@littleidea
Created August 13, 2009 06:37
Show Gist options
  • Save littleidea/167022 to your computer and use it in GitHub Desktop.
Save littleidea/167022 to your computer and use it in GitHub Desktop.
>> require 'time'
=> true
>> t = Time.parse("Thu Mar 15 17:24:22 +0000 2007")
=> Thu Mar 15 11:24:22 -0600 2007
>> File.utime(t,t,"test")
=> 1
>> File.mtime("test")
=> Thu Mar 15 11:24:22 -0600 2007
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment