This commit is contained in:
Dominik Picheta 2014-02-13 06:46:10 -08:00
parent 6610e60735
commit eb16124d57
1 changed files with 12 additions and 1 deletions

View File

@ -185,11 +185,22 @@ This project aims to improve this situation. You will be tasked with describing
___
#### Improve times module
**Desirable skills:** Knowledge of date time representations, native time api's.
**Desirable skills:** Knowledge of date time representations, native time APIs.
**Description**:
The current times module lacks some useful features. The ability to tell how long ago a certain time occurred is for example missing. This should be implemented using the existing ``TTimeInterval`` type which provides a ``-`` operator for subtracting two ``TTimeInfo`` values. A bug exists in this implementation however which prevents this operation from working in the Julian calendar, this should be
fixed.
Some research is also required in this task. Other languages should be looked at to see what their standard library provides in terms of time handling. Features from those languages should be ideally ported over to Nimrod.
**Tasks**:
* Fix limitations to do with time intervals, specifically subtracting a TTimeInterval from a TTimeInfo.
* Provide a ``$`` for TTimeInterval. Goal is to be able to get timing info like "5 minutes ago".
* Look at time handling in other languages and implement missing features.
**Bonus Points**: Ensure that the times module works with the JavaScript backend.
**Difficulty:** Easy