Tag: Date and Time

Time is an illusion. Lunchtime doubly so.
―Ford Prefect

Tracking and presenting of date and time data is a complex and difficult problem in any computer system. In Ruby it is primarily handled through a combination of three classes. Time is a thin wrapper around the UNIX concept of time as a number of seconds since the UNIX Epoch. The Date and DateTime classes handle more complex calendar calculations, including translating between time zones and alternative calendar systems.