New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Time and DateTime types and duration #229
Comments
closed? #276 |
Unfortunately, the PR was merged before I've managed to check it. I don't know where we are with this and I don't see tests for some use cases so we will have to wait for @aninde. It should be possible to recreate all formats shown here: https://support.office.com/en-us/article/TEXT-function-20D5AC4D-7B94-49FD-BB38-93D29371225C with TimeDateWhat about the other way around? When do we use BTW I think I've found an issue with the TEXT function. It is in DatePlugin, while it can format a lot more than date or time. FractionsPercentagesMaybe the |
@wojciechczerniak |
I have created an issue for things that were out of scopeYou can find it here: #314. I agree we should focus on Time, DateTime and Duration here. Not all format options are supportedFor AM/PM we've got A/P but we should support AM/PM as well. We're missing fraction of secondsODFF:
We're missing the duration format (square brackets
|
@izulin Where are we with the missing parts? ☝️ |
Should be done by the end of the week. |
Finished in #342 👍 |
Description
While removing #118 moment.js dep, we've removed the support for DateTime and Time data types. We have to bring back the support for those data types.
Time
[1] is defined as "Time is a subtype of Number. Time is represented as a fraction of a day."DateTime
[2] is defined as "DateTime is a subtype of Number. It is a Date plus Time."Is returned by some function: NOW, WORKDAY, VALUE.
Time
is parsed from strings: "HH:MM:SS AM/PM", "HH:MM AM/PM", "HH:MM:SS", "HH:MM"Duration
is often a result of arithmetic operators betweentime
values.Links
[1] https://docs.oasis-open.org/office/OpenDocument/v1.3/csprd02/part4-formula/OpenDocument-v1.3-csprd02-part4-formula.html#__RefHeading__1017886_715980110
[2] https://docs.oasis-open.org/office/OpenDocument/v1.3/csprd02/part4-formula/OpenDocument-v1.3-csprd02-part4-formula.html#__RefHeading__74713_1363921367
The text was updated successfully, but these errors were encountered: