Home
Ruby
ActiveRecord
Array
CGI
Class
Collections
Database
Date
Design Patterns
Development
File Directory
GUI
Hash
Language Basics
Method
Network
Number
Rails
Range
Reflection
Statement
String
Threads
Time
Tk
Unit Test
Windows Platform
XML
Menu
Time Calculation « Time « Ruby
Ruby
Time
Time Calculation
1.
You can see the difference in two Time objects by subtracting them:
2.
Add seconds and multiples of seconds to add to a time with +
3.
Doing Time Arithmetic
4.
Finding the Day of the Week
5.
Is it a leap year