mobily / rescript-date Goto Github PK
View Code? Open in Web Editor NEW๐ Date manipulation in ReScript.
Home Page: https://mobily.github.io/rescript-date
License: MIT License
๐ Date manipulation in ReScript.
Home Page: https://mobily.github.io/rescript-date
License: MIT License
I'm returning a Postgres interval to my client via EctoInterval which serializes a Postgrex.Interval into some Json that looks like {secs: 0, months: 50, microsecs: 0, days: 25}
... I'd like to be able to serialize that into something I can pass to date-fns/formatDuration.
For now I'll make my own Duration record but it'd be nice if this lib had a solution for it ๐คทโโ๏ธ
I could not found it ๐ค
If you guys have a WIP there for it I'll await, if no we can maybe enable some ideas in this thread for how to implement in Reason
let date = Js.Date.fromString("2021-01-05")
date->ReDate.getWeek // returns 1
do you know how can I convert that "2021-W1" back to a date?
I would like to be able to get the start of that week.
something like
ReDate.getDateFromWeekNumber(~year=2021., ~weekNumber=1., ~weekStartsOn=Friday)
// would return "2021-01-01T06:00:00.000Z"
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.