DateTimeGroupItem

DateTimeGroupItem class

Represents the datetime’s group setting.

class DateTimeGroupItem;

Constructors

NameDescription
constructor(IObject)Constructs from an IObject convertible to this.
constructor(DateTimeGroupingType, number, number, number, number, number, number)

Methods

MethodDescription
getMinValue()Gets the min value.
getDateTimeGroupingType()Gets and sets the group type.
setDateTimeGroupingType(DateTimeGroupingType)Gets and sets the group type.
getYear()Gets and sets the year of the grouped date time.
setYear(number)Gets and sets the year of the grouped date time.
getMonth()Gets and sets the month of the grouped date time.
setMonth(number)Gets and sets the month of the grouped date time.
getDay()Gets and sets the day of the grouped date time.
setDay(number)Gets and sets the day of the grouped date time.
getHour()Gets and sets the hour of the grouped date time.
setHour(number)Gets and sets the hour of the grouped date time.
getMinute()Gets and sets the minute of the grouped date time.
setMinute(number)Gets and sets the minute of the grouped date time.
getSecond()Gets and sets the second of the grouped date time.
setSecond(number)Gets and sets the second of the grouped date time.

constructor(IObject)

Constructs from an IObject convertible to this.

constructor(obj: IObject);

Parameters:

ParameterTypeDescription
objIObjectThe object.

constructor(DateTimeGroupingType, number, number, number, number, number, number)

constructor(type: DateTimeGroupingType, year: number, month: number, day: number, hour: number, minute: number, second: number);

Parameters:

ParameterTypeDescription
typeDateTimeGroupingType
yearnumber
monthnumber
daynumber
hournumber
minutenumber
secondnumber

getMinValue()

Gets the min value.

getMinValue() : Date;

getDateTimeGroupingType()

Gets and sets the group type.

getDateTimeGroupingType() : DateTimeGroupingType;

Returns

DateTimeGroupingType

setDateTimeGroupingType(DateTimeGroupingType)

Gets and sets the group type.

setDateTimeGroupingType(value: DateTimeGroupingType) : void;

Parameters:

ParameterTypeDescription
valueDateTimeGroupingTypeThe value to set.

getYear()

Gets and sets the year of the grouped date time.

getYear() : number;

setYear(number)

Gets and sets the year of the grouped date time.

setYear(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

getMonth()

Gets and sets the month of the grouped date time.

getMonth() : number;

setMonth(number)

Gets and sets the month of the grouped date time.

setMonth(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

getDay()

Gets and sets the day of the grouped date time.

getDay() : number;

setDay(number)

Gets and sets the day of the grouped date time.

setDay(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

getHour()

Gets and sets the hour of the grouped date time.

getHour() : number;

setHour(number)

Gets and sets the hour of the grouped date time.

setHour(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

getMinute()

Gets and sets the minute of the grouped date time.

getMinute() : number;

setMinute(number)

Gets and sets the minute of the grouped date time.

setMinute(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

getSecond()

Gets and sets the second of the grouped date time.

getSecond() : number;

setSecond(number)

Gets and sets the second of the grouped date time.

setSecond(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.