enum Enums::SnipsGrain

Overview

Enum representing the grain of a resolved date related value.

Defined in:

bindings/enums.cr

Enum Members

Year = 0

The resolved value has a granularity of a year.

Quarter = 1

The resolved value has a granularity of a quarter.

Month = 2

The resolved value has a granularity of a mount.

Week = 3

The resolved value has a granularity of a week.

Day = 4

The resolved value has a granularity of a day.

Hour = 5

The resolved value has a granularity of an hour.

Minute = 6

The resolved value has a granularity of a minute.

Second = 7

The resolved value has a granularity of a second.

Instance Method Summary

Instance Method Detail

def day? #

[View source]
def hour? #

[View source]
def minute? #

[View source]
def month? #

[View source]
def quarter? #

[View source]
def second? #

[View source]
def week? #

[View source]
def year? #

[View source]