bakineggs (owner)

Revisions

gist: 158980 Download_button fork
public
Public Clone URL: git://gist.github.com/158980.git
Embed All Files: show embed
Ruby #
1
2
3
4
5
6
twz = ActiveSupport::TimeZone['UTC'].parse("2009-06-07 18:01:06") #=> Sun, 07 Jun 2009 18:01:06 UTC +00:00
twoz = Time.parse('2009-06-07T18:01:06+00:00') #=> Sun Jun 07 11:01:06 -0700 2009
twz.to_i #=> 1244397666
twoz.to_i #=> 1244397666
twz == twoz #=> true
{twz => 'a'} == {twoz => 'a'} #=> false