DateRange
Extends:
Given a date range, sets the startDate and endDate values to the appropraite values.
Static Method Summary
Static Public Methods | ||
public static |
getEndOfQuarter(year: number, quarter: number): * Given a quarter, returns the date at the end of the quarter |
|
public static |
getStartOfQuarter(year: number, quarter: number): * Given a quarter, returns the date at the start of the quarter |
|
public static |
registerDateRange(rangeName: String, initFunction: Function) A Function that takes a date range code, and a initialization function. |
Constructor Summary
Public Constructor | ||
public |
constructor(dateRangeType: *, startDate: *, endDate: *) |
Method Summary
Public Methods | ||
public |
|
Inherited Summary
From class TypedObject | ||
public |
typeCache: {} |
|
public |
|
|
public |
Returns a list of strings that represent the object hierarchy for this object. |
|
public |
implementsOrExtends(name: *): Boolean Returns true if the class name to check is in the list of class names defined for this class. |
Static Public Methods
public static getEndOfQuarter(year: number, quarter: number): * source
Given a quarter, returns the date at the end of the quarter
Return:
* |
public static getStartOfQuarter(year: number, quarter: number): * source
Given a quarter, returns the date at the start of the quarter
Return:
* |
public static registerDateRange(rangeName: String, initFunction: Function) source
A Function that takes a date range code, and a initialization function. The code is what shows up in the list of dropdowns. The initFunction is resposible for initializing the date range object, which should populate its start and end dates. The initFunction should take a dateRange object, and return that object with its start and end date populated.
Public Constructors
public constructor(dateRangeType: *, startDate: *, endDate: *) source
Override:
TypedObject#constructorParams:
Name | Type | Attribute | Description |
dateRangeType | * | ||
startDate | * | ||
endDate | * |
Public Methods
public getClassNames(): string source
Returns a list of strings that represent the object hierarchy for this object.