Module: EnvParser::Types::ChronologyTypes
- Defined in:
- lib/env_parser/types/chronology_types.rb
Overview
Defines types for date/time-related values, adding the following:
:as value |
type returned | default | notes |
---|---|---|---|
:date | Date | nil |
A natural language or ISO8601-parseable date.
Actual interpretation of the value is handled by the *chronic* gem. |
:time / :datetime | Time | nil |
A natural language or ISO8601-parseable date and time.
Actual interpretation of the value is handled by the *chronic* gem. |
:duration | Numeric | nil |
A natural language or ISO8601-parseable period.
Value returned is the number of seconds in the given period. Actual interpretation of the value is handled by the *chronic_duration* gem. |