-
Notifications
You must be signed in to change notification settings - Fork 292
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
Support TimeOnly, DateOnly #2596
Conversation
Great work @kerams, thank you! Please just let me know when this is ready to merge 👍 |
For some reason .NET SDK 5.0.403 was used for the last build, hence the failing tests. |
Ah, you changed the workflow file today. Well, without .NET 6 we're not going to get liftoff here :). |
Sorry, we had some issues when updating to F# 6 (see #2605) but hopefully they're solved now, can you try syncing with |
@alfonsogarciacaro, I'm not sure what's going on. The new tests pass the first time around, but then do not get compiled as .NET 6 following I don't think that part of the test suite had been run when I got green ticks previously. |
@kerams Sorry, I should have explained this to you before. Fable standalone packs its own BCL DLLs because the point is dotnet/nuget doesn't need to be installed in the system (or the browser). These DLLs are in fable-metadata and are generated by custom build of FCS by (you probably guessed it) @ncave. We haven't updated the DLLs to net6 yet so that explains why fable-standalone doesn't find the new classes We can update the DLLs but maybe it's better to do it when @ncave updates fcs-fable... Yet another fork to make FCS compilable by Fable :) So for now we can disable them for fable-compiler-js. I can do that so you don't need to worry. Thanks again for this work! |
Alright then, thanks. |
@alfonsogarciacaro I've updated the BCL to 6.0.100 in #2612, hopefully that works. |
Thank you both! Released in v3.6.0-beta-001 👍 |
Implements #2519.
TimeOnly
is represented by a simple number, just likeTimeSpan
.DateOnly
is represented byDate
likeDateTime
.Remaining work
Not implementing
DateOnly
has a constructor which lets you specify the calendar used to intepret the other parameters. This would add another layer of complexity, and I don't think it's of any interest to the vast majority of users.