DateTimeGroupItem
DateTimeGroupItem class
Represents the datetime’s group setting.
class DateTimeGroupItem;
Constructors
| Constructor | Description |
|---|---|
| constructor(Object) | Constructs from an Object convertible to this. |
| constructor(DateTimeGroupingType, number, number, number, number, number, number) |
Properties
| Property | Type | Description |
|---|---|---|
| minValue | Date | Readonly. Gets the min value. |
| dateTimeGroupingType | DateTimeGroupingType | Gets and sets the group type. |
| year | number | Gets and sets the year of the grouped date time. |
| month | number | Gets and sets the month of the grouped date time. |
| day | number | Gets and sets the day of the grouped date time. |
| hour | number | Gets and sets the hour of the grouped date time. |
| minute | number | Gets and sets the minute of the grouped date time. |
| second | number | Gets and sets the second of the grouped date time. |
Methods
| Method | Description |
|---|---|
| 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:
| Parameter | Type | Description |
|---|---|---|
| obj | Object | The 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:
| Parameter | Type | Description |
|---|---|---|
| type | DateTimeGroupingType | |
| year | number | |
| month | number | |
| day | number | |
| hour | number | |
| minute | number | |
| second | number |
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
setDateTimeGroupingType(DateTimeGroupingType)
@deprecated. Please use the ‘dateTimeGroupingType’ property instead. Gets and sets the group type.
setDateTimeGroupingType(value: DateTimeGroupingType) : void;
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | DateTimeGroupingType | The 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:
| Parameter | Type | Description |
|---|---|---|
| value | number | The 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:
| Parameter | Type | Description |
|---|---|---|
| value | number | The 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:
| Parameter | Type | Description |
|---|---|---|
| value | number | The 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:
| Parameter | Type | Description |
|---|---|---|
| value | number | The 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:
| Parameter | Type | Description |
|---|---|---|
| value | number | The 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:
| Parameter | Type | Description |
|---|---|---|
| value | number | The value to set. |
isNull()
Checks whether the implementation object is null.
isNull() : boolean;
toObject()
Gets the Object.
toObject() : Object;