Bitmaker Labs – Day 21

It’s the start of my 5th week here today. School’s going by pretty fast, leaving four more weeks left till graduation. Graduation’s both scary and exciting, but that’s a topic for another time.

Today’s lesson focused on Date, Time, and DateTime objects in Ruby. There are some really cool methods that can be used on DateTime. Working with these 3 objects is a nightmare though. I don’t even want to think about factoring in different timezones and daylight savings.

Time.now #Gives you the time and date
Date.today  #Gives you the current day.
DateTime.now #Gives you the date followed by the time.
Time.zone.now + 1.week #Gives you the time in a week.

After class, we went back to working on our OpenTable clone, and I finally finished it with my friend. Now I’m starting it again from scratch to do on my own, to make sure I know the concepts.