Skip to content

Instantly share code, notes, and snippets.

@morganp
Created August 21, 2010 15:45
Show Gist options
  • Save morganp/542472 to your computer and use it in GitHub Desktop.
Save morganp/542472 to your computer and use it in GitHub Desktop.
$DATE_FORMAT = "%I:%M%p %b %d %Y"
x = Time.now
puts x.strftime($date_format)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment