concept date in category ruby

This is an excerpt from Manning's book The Well-Grounded Rubyist, Third Edition.
You can employ this automatic initialization process to set an object’s state at the time of the object’s creation. Let’s say we want to give each ticket object a venue and date when it’s created. We can send the correct values as arguments to Ticket.new, and those same arguments will be sent to initialize automatically. Inside initialize, we’ll have access to the venue and date information, and can save that information by means of instance variables:
class Ticket def initialize(venue,date) @venue = venue @date = date endBefore closing the class definition with end, we should add something else: a way to read back the venue and date. Let’s drop the get_ formula that we used with get_name (in listing 3.1) and instead name the get methods after the instance variables whose values they return. Add this code (which includes the end directive for the class definition) to the previous lines:
Time, Date, and DateTime objects
Ruby gives you lots of ways to manipulate times and dates. In fact, the extent and variety of the classes that represent times and/or dates, and the class and instance methods available through those classes, can be bewildering. So can the different ways in which instances of the various classes represent themselves. Want to know what the day we call April 24, 1705, would have been called in England prior to the calendar reform of 1752? Load the date package, and then ask
>> require 'date' => true >> Date.parse("April 24 1705").england.strftime("%B %d %Y") => "April 13 1705"