@odata2ts/converter-luxon
v0.2.4
Published
Luxon based odata2ts compatible converters for date and time related OData types
Downloads
163
Maintainers
Readme
Luxon Converters
Luxon based odata2ts compatible converters for date and time related OData types.
User facing data types:
Conversions
| OData Type | Result Type | Converter Id | Description |
| -------------------- | ----------- | ------------------------------ | ------------------------------------------------------------------------------- |
| Edm.DateTimeOffset
| DateTime
| dateTimeOffsetToLuxonConverter | |
| Edm.Date
| DateTime
| dateToLuxonConverter | Luxon's DateTime will still have the time part, which should be ignored by user |
| Edm.TimeOfDay
| DateTime
| timeOfDayToLuxonConverter | Luxon's DateTime will still have the date part, which should be ignored by user |
| Edm.Duration
| Duration
| durationToLuxonConverter | |
Installation
Note: This converter expects, that Luxon itself has been already installed,
it doesn't pull Luxon automatically into your project. So if not already present, also install luxon
.
npm install --save @odata2ts/converter-luxon
Documentation
Main Documentation of odata2ts: https://odata2ts.github.io/
Support, Feedback, Contributing
This project is open to feature requests, suggestions, bug reports, usage questions etc. via GitHub issues.
Contributions and feedback are encouraged and always welcome.
See the contribution guidelines for further information.
Spirit
This project has been created and is maintained in the following spirit:
- adhere to the OData specification as much as possible
- support any OData service implementation which conforms to the spec
- allow to work around faulty implementations if possible
- stability matters
- exercise Test Driven Development
- bomb the place with unit tests (code coverage > 95%)
- ensure that assumptions & understanding are correct by creating integration tests
License
MIT - see License.