The square brackets are for a closed interval wherein endpoints are included.
The round brackets are for an open interval wherein endpoints are excluded.
The square brackets are for a closed interval wherein endpoints are included.
The round brackets are for an open interval wherein endpoints are excluded.
It was a bit of a trick to find the DateInterval spec hidden away in the constructor doco, not the DateInterval class doco.
| Designator | Description |
|---|---|
| Y | years |
| M | months |
| D | days |
| W | weeks |
| H | hours |
| M | minutes |
| S | seconds |