davidgomes / bs-luxon Goto Github PK
View Code? Open in Web Editor NEWLuxon bindings for Bucklescript/ReasonML
License: MIT License
Luxon bindings for Bucklescript/ReasonML
License: MIT License
It doesn't appear to have been published to npm
Upgrade to the 1.x.x
major version. They update pretty frequently, but doing minor bumps after the major upgrade wouldn't need much work when someone needed/wanted it. The current version at the time of this issue is 1.9.0
.
Just making a note of this- I may get around to tackling it soon™️.
Right now, bs-luxon clients have to use it like this:
let dt = BsLuxon.Luxon.DateTime.local();
Js.log(dt);
We should refactor DateTime into its own module so users can use it like this instead:
let dt = BsLuxon.DateTime.local();
Js.log(dt);
Thanks for making bs-luxon
! The front page has an example of using it:
DateTime.(
local()
|> setZone("America/New_York")
|> minus(`Duration(Duration.from(~weeks=1, ())))
|> endOf(`day)
|> toISO()
);
I think this should have open BsLuxon;
at the top, since that's what I needed to do in order to get it to compile; pointing this out for others that want to use the library. See here for an example of using it in a project.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.