Downloads for VisualWorks
Helpful Information
Instances of Chronos' Timepoint, YearMonthDay, TimeOfDay, ScientificDuration and ChronosTimezone classes can all be converted into their native equivalents by sending the message #asNative to the instance. Instances of the native date/time classes can be converted into their Chronos equivalents by sending the message #asChronosValue to the instance.
A Chronos Timepoint may be either invariant to Universal Time (same semantics as a java.util.Date--as required by the ANSI Smalltalk Standard) or invariant to nominal time (same semantics as a VisualWorks Timestamp.) A Timepoint that is invariant to Universal Time uses its value in Universal Time as its invariant, and compares as equal to all others whose value in Universal Time is the same. A Timepoint that is invariant to nominal time uses its nominal ("local") time as its invariant, and compares as equal to all others having the same nominal ("local") time. When the two types of time-invariance are mixed in the same expression, nominal-time-invariant semantics takes precedence. Universal-Time invariance is the default.
For additional information regarding the interoperability of the Chronos date, time, duration, interval and time zone values with those that come natively with VisualWorks, please refer to the following article: Chronos/VisualWorks Compatibility.
|
|
[Chronos] All code (classes and methods, and all associated documentation,) distributed as part of the
Chronos Date/Time library are © Copyright 2005-2006 by Alan L. Lovejoy. All Rights Reserved.
Usage is controlled by the Chronos License (which is included in the distribution as the contents of
the file {chronos-license.txt}, and is also available from the
Chronos web site {http://www.chronos-st.org/License.html})
"Do not go gentle into that good night,
Old age should burn and rave at the close of the day;
Rage, rage at the dying of the light!" -- Dylan Thomas
|