DateTimeGroupingRule

Access an existing date-time grouping rule.

To set a rule on `https://developers.google.com/apps-script/reference/spreadsheet/pivot-group`, use `https://developers.google.com/apps-script/reference/spreadsheet/pivot-group#setDateTimeGroupingRule(DateTimeGroupingRuleType)`.

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/spreadsheet/date-time-grouping-rule#getRuleType()` | `https://developers.google.com/apps-script/reference/spreadsheet/date-time-grouping-rule-type` | Gets the type of the date-time grouping rule. |

## Detailed documentation

### `getRuleType()`

Gets the type of the date-time grouping rule.

#### Return


`https://developers.google.com/apps-script/reference/spreadsheet/date-time-grouping-rule-type` --- The rule type.