Describe the bug
Given the issues identified in RAP 11: https://docs.google.com/document/d/1xXRZnPBifewgKs57mRYBI75QjSF5Hg-Lw9tQ_STWtQQ/edit
it is important that programmers can check if a year
field (for example) is present or not. That would also be consistent
given the way we treat the fields of values of the loc
type.
Currently however, datetime
has many fields but none of them are supported by the ?
and has
operators.
There are also issues with zone offsets while reading/writing them in JSON and CSV. The offset information is normalized to the instanst that it represents.
See also RAP11: Rascal and Vallang should keep datetime values immutable, and have different values for when the zone offsets or zone names are different. Even though this would make "equal" instants different, that would allow data/code scientists in Rascal to faithfully deal with such discrepancies and make choices based on the context that they are in.