A general representation of a year-month-day triple not tied to any locale and used by the GTFS entities ServiceCalendar and ServiceCalendarDate to represent service date ranges.
A service date is a particular date when a particular GTFS service id is active. This class is immutable. It is a ValueObject(DesignPattern).| name | data type | constraints | description |
|---|---|---|---|
| year | number | required | |
| month | number | required | |
| day | number | required | |
| |
|
|
|
| minMax | boolean | required | The service date is either the minimum or maximum allowed value. In practice this means unbounded. |
Example
{
"year" : 12345,
"month" : 12345,
"day" : 12345,
"minMax" : true
}