- If you want to create a new
Time instance, then instantiate one
of the following patterns:
Time now
Time fromSeconds: seconds past midnight
- If you want to extract hours, minutes, or seconds from a
Time
instance, then instantiate one of the following patterns:
Time instance hours
Time instance minutes
Time instance seconds
- If you want to add or subtract
Time instances, then instantiate
one of the following patterns:
Time instance addTime: another Time instance
Time instance subtractTime: another Time instance
- If you want to compare
Time instances, then instantiate one of
the following patterns:
Time instance = another Time instance
Time instance < another Time instance
- If you want to create a new
Date instance, then instantiate one
of the following patterns:
Date today
Date newDay: day in year (an integer)
year: year (an integer)
- If you want to extract integer information from a
Date instance,
then instantiate one of the following patterns:
Date instance day
Date instance year
- If you want to extract information from a
Date
instance, then instantiate one of the following patterns:
Date instance dayName
Date instance monthName
- If you want to add or subtract a specified number of days from a
Date instance, then instantiate one of the following patterns:
Date instance addDays: Integer instance
Date instance subtractDays: Integer instance
- If you want to compare
Date instances, then instantiate one of
the following patterns:
Date instance = another Date instance
Date instance < another Date instance