EsDay has many integrated functions:
- add: adds a value to an esday object.
- clone: creates a copy of an esday object (
esday().clone()
).
- diff: calculates the difference between 2 esday objects based on a given unit.
- endOf: gets an esday object at the end of a unit.
- format: converts an esday object to a string.
- get: get an element of an esday object.
- isAfter: compares 2 esday objects.
- isBefore: compares 2 esday objects.
- isSame: compares 2 esday objects.
- parse: creates a new esday object.
- set: sets an element of an esday object.
- startOf: gets an esday object at the start of a unit.
- subtract: subtracts a value from an esday object.