Created
October 2, 2009 09:48
-
-
Save teamon/199592 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>> a = Lecture.new | |
=> #<Lecture @id=nil @name=nil @description=nil @date=nil @created_at=nil @faculty_id=nil @user_id=nil @lecturer_id=nil> | |
>> a.date = {"month"=>"08", "hour"=>"11", "day"=>"2", "year"=>"2009", "min"=>"45"} | |
=> {"month"=>"08", "hour"=>"11", "day"=>"2", "min"=>"45", "year"=>"2009"} | |
>> a.date | |
=> {"month"=>"08", "hour"=>"11", "day"=>"2", "min"=>"45", "year"=>"2009"} | |
>> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>> a = Lecture.new | |
=> #<Lecture id=nil name=nil description=nil date=nil created_at=nil faculty_id=nil user_id=nil> | |
>> a.date = {"month"=>"08", "hour"=>"11", "day"=>"2", "year"=>"2009", "min"=>"45"} | |
=> {"month"=>"08", "hour"=>"11", "day"=>"2", "min"=>"45", "year"=>"2009"} | |
>> a.date | |
=> #<DateTime: 212115973559/86400,0,2299161> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment