Vision Messages: DateOffset
Profile of Class DateOffset
Object | Ordinal | +--- DateOffset | | | +--- BusinessDays | | | +--- Days | | | +--- MonthBeginnings | | | +--- MonthEnds | | | +--- Months | | | +--- QuarterBeginnings | | | +--- QuarterEnds | | | +--- Quarters | | | +--- YearBeginnings | | | +--- YearEnds | | | +--- Years
The class DateOffset is an abstract class that supports the protocol for the different classes of date increment. DateOffset are used primarily in the formation of date ranges and for date arithmetic as illustrated below: !dr <- 88 to: 85 by: 1 years !lastYearEnd <- ^today - 1 yearEnds; Most of the protocol for is actually implemented at the specializations of DateOffset. The actual implementations will differ among the classes, but the functional goal of a message will be the same.
Message Index
* aValue
+ aValue
__fixReference
asDate
asInteger
asSelf
classDescriptor
defaultInstance
evaluate: aBlock
evaluate: aBlock from: aDate to: aDate
incrementName
isDateOffset
print
subtractedFrom: aDate
whatAmI
Messages
Synopsis:+DateOffset * aValueDescription:
Multiplies the recipient offset by the value supplied.Type: Method          Returns: Date
Parameters:
1 - Value
Also Defined At:
| List | TimeSeries | Undefined |
Synopsis:__fixReferenceDateOffset + aValueDescription:
Adds the recipient offset to the value supplied.Type: Method          Returns: Date
Parameters:
1 - Value
Also Defined At:
| Date | List | TimeSeries | Undefined |
Synopsis:asDateDateOffset __fixReferenceType: Method          Returns: Object
Synopsis:asIntegerDateOffset asDateDescription:
Adds the recipient offset to the current date (^date).Type: Method          Returns: Date
Synopsis:asSelfDateOffset asIntegerDescription:
Converts a DateOffset into an integer in YYYYMMDD form.Type: Constant          Returns: Integer
Synopsis:classDescriptorDateOffset asSelfDescription:
Returns the original object.Type: Primitive          Returns: DateOffset
Also Defined At:
| Block | Boolean | Classification | Collection | Currency | Date | DateRange | Dictionary | Entity | IndexedList | Interface | List | Number | Object | OpenVision | Schema | String | TimeSeries | Undefined | Utility |
Synopsis:defaultInstanceDateOffset classDescriptorDescription:
Reference to the object which describes the class. Class level information is stored here.Type: Constant          Returns: Object
Also Defined At:
| Block | Boolean | Classification | Collection | Currency | Date | DateRange | Dictionary | Entity | IndexedList | Interface | List | Number | Object | OpenVision | Schema | String | TimeSeries | Undefined | Utility |
Synopsis:evaluate:DateOffset defaultInstanceDescription:
Returns the default instance of the recipient object's classType: Constant          Returns: DateOffset
Also Defined At:
| Block | Boolean | Classification | Collection | Currency | Date | DateRange | Dictionary | Entity | IndexedList | Interface | List | Number | OpenVision | Schema | String | TimeSeries | Undefined | Utility |
Synopsis:evaluate:from:to:DateOffset evaluate: aBlockDescription:
Adds the recipient to the current ^date and evaluates the supplied block.
For example:
-3 monthEnds evaluate: [ ^date printNL ] ;
Type: Method          Returns: Object
Parameters:
1 - Block
Synopsis:incrementNameDateOffset evaluate: aBlock from: aDate to: aDateDescription:
Evaluates the supplied block for the date range formed by date1, date2, and the recipient DateOffset.Type: Method          Returns: Object
Parameters:
1 - Block
2 - Date
3 - Date
Synopsis:isDateOffsetDateOffset incrementNameDescription:
Returns the name portion of the recipient DateOffset as a String.Type: Constant          Returns: String
Synopsis:printDateOffset isDateOffsetDescription:
Returns a TRUE value when sent to any DateOffset.Type: Constant          Returns: TRUE
Also Defined At:
| Object |
Synopsis:subtractedFrom:DateOffset printDescription:
Redefines the standard print message so that the content of the actual date offset is printed.Type: Method          Returns: DateOffset
Also Defined At:
| Block | Date | DateRange | Entity | IndexedList | List | Object | String | TimeSeries | Undefined |
Synopsis:whatAmIDateOffset subtractedFrom: aDateDescription:
Subtracts the recipient DateOffset from the supplied Date.Type: Method          Returns: Date
Parameters:
1 - Date
Also Defined At:
| Undefined |
Synopsis:DateOffset whatAmIDescription:
Returns the string 'DateOffset'.Type: Constant          Returns: String
Also Defined At:
| Block | Boolean | Classification | Collection | Currency | Date | DateRange | Dictionary | Entity | IndexedList | Interface | List | Number | Object | OpenVision | Schema | String | TimeSeries | Undefined | Utility |