Replies: 2 comments 2 replies
-
GNU unitsGNU Units has a similar definition for "month" and "year" compared to numbat, but not exactly:
These appear to be small rounding differences. GNU Units has no support at all for datetimes, as far as I can tell QalculateQalculate is also similar to numbat, but uses the Julian year by default (whereas numbat uses the Gregorian year)
It has functions to parse and manipulate date times. For example, it can do leap-year-aware calculations like:
It also has a dedicated
It also uses this same intelligence with the infix addition operator, but this can yield some surprising results:
|
Beta Was this translation helpful? Give feedback.
-
FrinkFrink has an excellent documentation on this topic. It's worth a read, but to summarize the main points that are useful for us at the moment (in relation to #287):
SyntaxFrink has a nice shortcut syntax for entering dates, using Date-time arithmeticInvolves the usual operations: "You can subtract one date from another, or add/subtract a time interval to a date." Adding time intervals to dates: the Frink documentation has this paragraph which summarizes the concerns we had in #287:
So you can do things like Calendar functionsFrink has many functions for manipulating calendar dates, and it looks like they put a lot of thought into it. Might be worth a look once we get there. Notably, they do not have a Time zonesFrink allows users to abbreviate some time zones, e.g. |
Beta Was this translation helpful? Give feedback.
-
Currently, time units like "month" and "year" are defined like this:
These are perfectly fine definitions, but may be a little unexpected in some cases (like when adding "1 year" to a date).
It would be good to know if/how other tools represent these ambiguous units. This discussion thread will be used to collect and report on this data.
For context, see #287
Beta Was this translation helpful? Give feedback.
All reactions