#2346: r.timestamp: support also YYYY-DOY
-------------------------------------+--------------------------------------
Reporter: neteler | Owner: grass-dev@…
Type: enhancement | Status: new
Priority: normal | Milestone: 7.0.0
Component: LibGIS | Version: svn-releasebranch70
Keywords: r.timestamp, t.register | Platform: All
Cpu: Unspecified |
-------------------------------------+--------------------------------------
It would be of great help (esp. for time series) to add
year/doy (Day Of Year) support to r.timestamp. From this
t.register would benefit as well.
The "only" change needed seems to be an upgrade of G_scan_timestamp():
#2346: r.timestamp: support also YYYY-DOY
----------------------------------------------------+-----------------------
Reporter: neteler | Owner: grass-dev@…
Type: enhancement | Status: new
Priority: normal | Milestone: 7.0.0
Component: LibGIS | Version: svn-releasebranch70
Keywords: r.timestamp, t.register, temporal, doy | Platform: All
Cpu: Unspecified |
----------------------------------------------------+-----------------------
Comment(by huhabla):
This must be implemented in the C datetime library and in the temporal
framework parser in datetime_math.py[1]. I hoped that the dateutils[2]
already support this to have it out of the box, but unfortunately they
don't.
Hence we should orient on the ISO 8601 standard for ordinal dates when
implementing this (YYYY-DDD) but not YYYYDDD, since the temporal framework
and the C datetime library also support relative time and can't decide if
1900031 is 31. Jan. 1900 or if it is the number of seconds, days, ... .