PackageDescription: DateAndTime


Date And Time

Last published: November 1, 2006 by 'jfoster'

Defines 8 Classes
Extends 10 Classes


ANSI 5.8.1 DateAndTime
This protocol describes the behavior that is common to date time objects. Date time objects represent individual points in Coordinated Universal Time (UTC) as represented in an implementation defined local time.
The exact properties of local times are unspecified. Local times may differ in their offset from UTC.
A given local time may have different offsets from UTC at different points in time.
All dates and times in the UTC local time are in the Gregorian calendar. Date times prior to the adoption of the Gregorian calendar are given in the retrospective astronomical Gregorian calendar.
The year 1 B.C. is astronomical Gregorian year 0. The year 2 B.C. is astronomical Gregorian year-1. The year 1 A.D. is astronomical Gregorian year 1. The offset of the UTC local time is zero.

ANSI 5.8.2 Duration
Represents a length of time.

ANSI 5.8.3 Duration factory
Represents protocol for creating a particular length of time.

ANSI 5.8.4 DateAndTime factory
Represents protocol for creating an abstraction for a particular day of the year.

Copyright (c) 2006 GemStone Systems, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.