Instances of Date are Timespans with duration of 1 day.
Their default creation assumes a start of midnight in the local time zone.
To create new Date instances, use one of the static instance-creation methods, NOT 'new Date':
Located in /harmoni/core/Primitives/Chronology/Date.class.php (line 48)
SObject | --Magnitude | --Timespan | --Date
Answer the reciever as a Date
Answer a new object that represents now.
Answer a Date starting on the Squeak epoch: 1 January 1901
Read a Date from the stream in any of the forms:
Answer the receiver rendered in standard U.S.A format mm/dd/yyyy.
Answer the previous date whose weekday name is dayName.
Format is '4 June 2005'
Print a description of the receiver on aStream using the format denoted the argument, formatArray:
array(item, item, item, sep, monthfmt, yearfmt, twoDigits)
items: 1=day 2=month 3=year will appear in the order given,
separated by sep which is eaither an ascii code or character.
monthFmt: 1=09 2=Sep 3=September
yearFmt: 1=1996 2=96
digits: (missing or)1=9 2=09.
See the examples in printOn: and mmddyy
Create a new object starting now, with our default one day duration
Create a new object starting from midnight
Answer the date that occurs $anInteger days before this date
Answer today's date
Create a new object starting on the julian day number specified.
Create a new object starting on the year and day of year specified.
Create a new object starting on the year, month, and day of month specified.
Answer yesterday's date
Format the date in ISO 8601 standard like '2002-10-22'.
Inherited From Timespan
Timespan::Timespan()
Timespan::asDate()
Timespan::asDateAndTime()
Timespan::asDuration()
Timespan::asMonth()
Timespan::asTime()
Timespan::asTimeStamp()
Timespan::asWeek()
Timespan::asYear()
Timespan::current()
Timespan::dates()
Timespan::day()
Timespan::dayOfMonth()
Timespan::dayOfWeek()
Timespan::dayOfWeekName()
Timespan::dayOfYear()
Timespan::daysInMonth()
Timespan::daysInYear()
Timespan::daysLeftInYear()
Timespan::duration()
Timespan::end()
Timespan::epoch()
Timespan::every()
Timespan::firstDayOfMonth()
Timespan::includes()
Timespan::includesAllOf()
Timespan::includesAnyOf()
Timespan::intersection()
Timespan::isEqualTo()
Timespan::isLeapYear()
Timespan::isLessThan()
Timespan::julianDayNumber()
Timespan::minus()
Timespan::months()
Timespan::next()
Timespan::plus()
Timespan::previous()
Timespan::printableString()
Timespan::setDuration()
Timespan::setStart()
Timespan::start()
Timespan::starting()
Timespan::startingDuration()
Timespan::startingEnding()
Timespan::startMonth()
Timespan::startMonthAbbreviation()
Timespan::startMonthIndex()
Timespan::startMonthName()
Timespan::startYear()
Timespan::to()
Timespan::union()
Timespan::weeks()
Timespan::years()
Inherited From Magnitude
Magnitude::isBetween()
Magnitude::isEqualTo()
Magnitude::isGreaterThan()
Magnitude::isGreaterThanOrEqualTo()
Magnitude::isLessThan()
Magnitude::isLessThanOrEqualTo()
Magnitude::max()
Magnitude::min()
Inherited From SObject
SObject::asA()
SObject::asString()
SObject::copy()
SObject::copySameFrom()
SObject::copyTwoLevel()
SObject::deepCopy()
SObject::isEqual()
SObject::isEqualTo()
SObject::isNotEqualTo()
SObject::isNotReferenceTo()
SObject::isReferenceTo()
SObject::newFrom()
SObject::postCopy()
SObject::printableString()
SObject::shallowCopy()
SObject::_deepCopyArray()
Documentation generated on Wed, 19 Sep 2007 10:22:32 -0400 by phpDocumentor 1.3.0RC3