You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Documentation for error behavior is hard to find. It's buried in the Validity section, which a new user is unlikely to know to look there. There's nothing in the API docs that mention it for methods like DateTime.fromISO
Describe the solution you'd like
Include near the beginning of the documentation text and an example of the use of isValid, etc. when an invalid DateTime is created
Also a mention exceptions are off by default (which is a great design decision, just not one that typical for most libraries)
const dt = DateTime.fromISO('invalid')
if (dt.isValid) {
...
}
Describe alternatives you've considered
n/a
Additional context
The validity behavior is described well here: https://moment.github.io/luxon/#/validity
but is hard for a new user to find. Especially with methods that have a high likelyhood of producing an error due to malformed input like DateTime.parseISO, the error behavior should be introduced at the beginning of the documentation.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Documentation for error behavior is hard to find. It's buried in the Validity section, which a new user is unlikely to know to look there. There's nothing in the API docs that mention it for methods like DateTime.fromISO
Describe the solution you'd like
Include near the beginning of the documentation text and an example of the use of isValid, etc. when an invalid DateTime is created
Also a mention exceptions are off by default (which is a great design decision, just not one that typical for most libraries)
Describe alternatives you've considered
n/a
Additional context
The validity behavior is described well here: https://moment.github.io/luxon/#/validity
but is hard for a new user to find. Especially with methods that have a high likelyhood of producing an error due to malformed input like DateTime.parseISO, the error behavior should be introduced at the beginning of the documentation.
The text was updated successfully, but these errors were encountered: