Skip to content

Instantly share code, notes, and snippets.

@bad6e
Created November 30, 2015 20:03
Show Gist options
  • Save bad6e/b9d6bd099295b86c0605 to your computer and use it in GitHub Desktop.
Save bad6e/b9d6bd099295b86c0605 to your computer and use it in GitHub Desktop.
#Time in Rails
*Setup
-- Start by talking about my recent PlaneBlame Project and how I used Time.now - show methods via slides
-- Time.now.hour/ Time.now.day /Time.now.year
-- Talk about Rails time helpers I used (1.hour 1.year etc)
-- Talk about other Rails Time Helpers (demonstrate a few - http://api.rubyonrails.org/classes/Time.html)
* Talk about UTC Time
-- Time.now & Time.current - pitfalls of Time.now
-- Postrgres and Heroku
*Takeaway
-- Time is hard
-- USE UTC and not Time.now
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment