View Ticket
Not logged in
Ticket UUID: d791e4babb62acd8999f8c4b5eda45372f046b38
Title: Proper Date Calculation Class
Status: Open Type: Code_Defect
Severity: Important Priority: Immediate
Subsystem: Resolution: Open
Last Modified: 2019-01-09 08:00:04 Contact:
Version Found In:
User Comments:
martin_vahi added on 2014-10-30 23:26:02:
Due to the leap-years, leap-seconds, etc. the
JavaScript Standard library Date class is flawed.
Therefore there is a need for a proper, fixed, version.

The calculation of dates will probably be iterative.
To allow it to work with arbitrary precision time stamps,
it should use arbitrary precision rational numbers, which,
again, unfortunately, are not provided by the
JavaScript stdlib.

Can be started only after the support for 
arbitrary precision rational numbers has been added
to the RJSL.

martin_vahi added on 2015-01-03 00:30:08:
Construct a Raudrohi specific Date-and-Time API 
and add some existing library to the bottom layer.

A possible candidate:  http://momentjs.com/

martin_vahi added on 2015-01-03 00:44:53:
Another candidate: https://code.google.com/p/datejs/

martin_vahi added on 2016-06-12 16:49:52:

The ideas reside at the mmmv_lang_t1 section.


martin_vahi added on 2019-01-09 07:58:09:
Java inspiration source:
https://www.joda.org/

martin_vahi added on 2019-01-09 08:00:04:
C# inspiration source:
https://nodatime.org/
https://github.com/nodatime

Something from Microsoft documentation:
https://docs.microsoft.com/en-us/dotnet/api/system.datetime?view=netframework-4.7.2
(archival copy: https://archive.is/1h8GA )