Programmer's Reference

Time

Time represents an abstraction for a time of day, based on a 24-hour clock. In contrast to Date, class Time is much more clearly specified in the Blue Book, and consequently there is much less variation between the vendor implementations. Smalltalk/V adds additional protocol to Time class to control the real-time clock on a personal computer. As with Date, the form is that Time provides protocol for manipulating Time instances, while Time class supports instance creation and general queries.

Accessing

hours, minutes, seconds

Calculating

addTime:, asSeconds, subtractTime:

Creating instances

dateAndTimeNow, fromSeconds:, now

Querying

millisecondsPerDay, millisecondsToRun:, millisecondClockValue

Porting tip:Neither Objectworks\Smalltalk or Smalltalk/V support millisecondsPerDay.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]