Hi, I'm notquiteamonad.
You can read about what I'm working on at notquiteamonad.com/now.
date_time is a high-level Rust library for use in situations where precision beyond seconds is not necessary.
License: Apache License 2.0
Hi, I'm notquiteamonad.
You can read about what I'm working on at notquiteamonad.com/now.
See notquiteamonad/datetimekt#40 (issue) and notquiteamonad/datetimekt#41 (pull request)
Consider making space default formatting as I believe it's closer to ISO-8601
Remove travis when complete.
Similar to #3
Methods such as add_years
on MonthTuple to achieve these four goals
Dependabot was set up to create pull requests against the branch integration
, but couldn't find it.
If the branch has been permanently deleted you can update Dependabot's target branch from your dashboard.
You can mention @dependabot in the comments below to contact the Dependabot team.
#16 was merged without checking it was applied to MonthTuple
. This needs to be rectified.
Legacy serialisation will still need to be supported for backwards compatibility, but a mixture of the two formats should not be accepted.
ISO 8601 for reference: https://www.iso.org/iso-8601-date-and-time-format.html
DateTuple::to_days()
and DateTuple::from_days
were both added in version 2.0.0 but not added to the CHANGELOG or README. They should be documented in both of those places.
Modify MonthTuple
and DateTuple
to use one-based months instead of zero-based months.
This will be a major breaking change and most likely require a version bump to 2.0.0 for publishing and warnings in CHANGELOG and README.
Have a format more similar to the std::fmt
string for getting readable strings.
For example, some users of the library may want to be able to output 2019 Jan 12
whereas others would prefer 12th January '19
or simply 12-1-19
.
These will mimic the functionality of MonthTuple.next_month
and MonthTuple.previous_month
, but move a DateTuple
on or back by one day.
This will lay the foundation for being able to add and subtract years, months, and days to and from DateTuples.
Add functions to convert a TimeTuple or Duration into total number of minutes (ignoring seconds) similar to the existing to_seconds
implementations.
Will simply be returning hours * 60 + seconds
but could be a nice helper in some cases to avoid those using the library having to make the conversion.
It should only be unit tests in the #[cfg(test)]
block in a module. Tests which only rely on public members should be extracted out into the tests directory.
Due to differences in seconds in a year and month by month, these sometimes produce invalid values. Will be fixed as part of #26 using the new to_days
and from_days
helpers.
Bug Description
Adding dates does not conform to common sense due to the limitations of a DateTuple
always being a valid date.
To Reproduce
Steps to reproduce the behavior:
DateTuple
Add
implementation.DateTuple
of four weeks because { y: 0, m: 0, d: 28 }
is not a valid date; there is no zeroth month.Proposed Solution
Add a date duration struct similar to time_tuple::Duration
so that this is possible. Implement Add<the date duration struct> for DateTuple
and Sub
.
In the meantime, the existing Add
and Sub
implementations will be removed.
It would be nice to find the difference between two dates. This could include using helper methods such as to_days to facilitate this. The results should reflect exactly how many days' difference there are between.
See issue #2 for more of a description.
Extra attention will need to be paid such that if months are being subtracted/added, the date of month still falls within the bounds for that month.
Would be nice to have for ordering
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.