Home Reference Source
public class | source

DateRange

Extends:

TypedObject → DateRange

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: *)

Member Summary

Public Members
public
public

endDate: *

public

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

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

Params:

NameTypeAttributeDescription
year number
quarter number

Return:

*

public static getStartOfQuarter(year: number, quarter: number): * source

Given a quarter, returns the date at the start of the quarter

Params:

NameTypeAttributeDescription
year number
quarter number

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.

Params:

NameTypeAttributeDescription
rangeName String
initFunction Function

Public Constructors

public constructor(dateRangeType: *, startDate: *, endDate: *) source

Override:

TypedObject#constructor

Params:

NameTypeAttributeDescription
dateRangeType *
startDate *
endDate *

Public Members

public dateRangeType: * source

public endDate: * source

public startDate: * source

Public Methods

public getClassNames(): string source

Returns a list of strings that represent the object hierarchy for this object.

Override:

TypedObject#getClassNames

Return:

string