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
I think the problem is due to the current implementation of isOnlyDate() which doesn't check if the day, month is isCertain too. Also not sure if year needs to be certain too for it to be a isOnlyDate?:
The isOnlyDate() has not documented, but my intention was to check if the component describes a date but does not include time, hence "is only date". The implementation follows that meaning exactly.
Could I ask what is the use-case you have in mind for the function?
I would expect the following to give
false
because there is no date but it givestrue
instead:console.log("Result: "+chrono.parse('monday',null,{ forwardDate: true })[0].start?.isOnlyDate())
I think the problem is due to the current implementation of
isOnlyDate()
which doesn't check if theday
,month
isisCertain
too. Also not sure ifyear
needs to be certain too for it to be aisOnlyDate
?:The text was updated successfully, but these errors were encountered: