DateTimeGroupItem

DateTimeGroupItem class

Represents the datetime’s group setting.

class DateTimeGroupItem;

Constructors

ConstructorDescription
constructor(Object)Constructs from an Object convertible to this.
constructor(DateTimeGroupingType, number, number, number, number, number, number)

Properties

PropertyTypeDescription
minValueDateReadonly. Gets the min value.
dateTimeGroupingTypeDateTimeGroupingTypeGets and sets the group type.
yearnumberGets and sets the year of the grouped date time.
monthnumberGets and sets the month of the grouped date time.
daynumberGets and sets the day of the grouped date time.
hournumberGets and sets the hour of the grouped date time.
minutenumberGets and sets the minute of the grouped date time.
secondnumberGets and sets the second of the grouped date time.

Methods

MethodDescription
getMinValue()@deprecated. Please use the ‘minValue’ property instead. Gets the min value.
getDateTimeGroupingType()@deprecated. Please use the ‘dateTimeGroupingType’ property instead. Gets and sets the group type.
setDateTimeGroupingType(DateTimeGroupingType)@deprecated. Please use the ‘dateTimeGroupingType’ property instead. Gets and sets the group type.
getYear()@deprecated. Please use the ‘year’ property instead. Gets and sets the year of the grouped date time.
setYear(number)@deprecated. Please use the ‘year’ property instead. Gets and sets the year of the grouped date time.
getMonth()@deprecated. Please use the ‘month’ property instead. Gets and sets the month of the grouped date time.
setMonth(number)@deprecated. Please use the ‘month’ property instead. Gets and sets the month of the grouped date time.
getDay()@deprecated. Please use the ‘day’ property instead. Gets and sets the day of the grouped date time.
setDay(number)@deprecated. Please use the ‘day’ property instead. Gets and sets the day of the grouped date time.
getHour()@deprecated. Please use the ‘hour’ property instead. Gets and sets the hour of the grouped date time.
setHour(number)@deprecated. Please use the ‘hour’ property instead. Gets and sets the hour of the grouped date time.
getMinute()@deprecated. Please use the ‘minute’ property instead. Gets and sets the minute of the grouped date time.
setMinute(number)@deprecated. Please use the ‘minute’ property instead. Gets and sets the minute of the grouped date time.
getSecond()@deprecated. Please use the ‘second’ property instead. Gets and sets the second of the grouped date time.
setSecond(number)@deprecated. Please use the ‘second’ property instead. Gets and sets the second of the grouped date time.
isNull()Checks whether the implementation object is null.
toObject()Gets the Object.

constructor(Object)

Constructs from an Object convertible to this.

constructor(obj: Object);

Parameters:

ParameterTypeDescription
objObjectThe 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

minValue

Readonly. Gets the min value.

minValue : Date;

dateTimeGroupingType

Gets and sets the group type.

dateTimeGroupingType : DateTimeGroupingType;

year

Gets and sets the year of the grouped date time.

year : number;

month

Gets and sets the month of the grouped date time.

month : number;

day

Gets and sets the day of the grouped date time.

day : number;

hour

Gets and sets the hour of the grouped date time.

hour : number;

minute

Gets and sets the minute of the grouped date time.

minute : number;

second

Gets and sets the second of the grouped date time.

second : number;

getMinValue()

@deprecated. Please use the ‘minValue’ property instead. Gets the min value.

getMinValue() : Date;

getDateTimeGroupingType()

@deprecated. Please use the ‘dateTimeGroupingType’ property instead. Gets and sets the group type.

getDateTimeGroupingType() : DateTimeGroupingType;

Returns

DateTimeGroupingType

setDateTimeGroupingType(DateTimeGroupingType)

@deprecated. Please use the ‘dateTimeGroupingType’ property instead. Gets and sets the group type.

setDateTimeGroupingType(value: DateTimeGroupingType) : void;

Parameters:

ParameterTypeDescription
valueDateTimeGroupingTypeThe value to set.

getYear()

@deprecated. Please use the ‘year’ property instead. Gets and sets the year of the grouped date time.

getYear() : number;

setYear(number)

@deprecated. Please use the ‘year’ property instead. Gets and sets the year of the grouped date time.

setYear(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

getMonth()

@deprecated. Please use the ‘month’ property instead. Gets and sets the month of the grouped date time.

getMonth() : number;

setMonth(number)

@deprecated. Please use the ‘month’ property instead. Gets and sets the month of the grouped date time.

setMonth(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

getDay()

@deprecated. Please use the ‘day’ property instead. Gets and sets the day of the grouped date time.

getDay() : number;

setDay(number)

@deprecated. Please use the ‘day’ property instead. Gets and sets the day of the grouped date time.

setDay(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

getHour()

@deprecated. Please use the ‘hour’ property instead. Gets and sets the hour of the grouped date time.

getHour() : number;

setHour(number)

@deprecated. Please use the ‘hour’ property instead. Gets and sets the hour of the grouped date time.

setHour(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

getMinute()

@deprecated. Please use the ‘minute’ property instead. Gets and sets the minute of the grouped date time.

getMinute() : number;

setMinute(number)

@deprecated. Please use the ‘minute’ property instead. Gets and sets the minute of the grouped date time.

setMinute(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

getSecond()

@deprecated. Please use the ‘second’ property instead. Gets and sets the second of the grouped date time.

getSecond() : number;

setSecond(number)

@deprecated. Please use the ‘second’ property instead. Gets and sets the second of the grouped date time.

setSecond(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

isNull()

Checks whether the implementation object is null.

isNull() : boolean;

toObject()

Gets the Object.

toObject() : Object;