|
| 1 | +- Feature: Timestamp Format |
| 2 | +- Status: Final |
| 3 | +- Submit Date: 2017-05-30 |
| 4 | +- Authors: SECoP committee |
| 5 | +- Type: Issue |
| 6 | +- PR: |
| 7 | +- Version: 1.0 |
| 8 | + |
| 9 | +Summary |
| 10 | +======= |
| 11 | + |
| 12 | +Which format should timestamps in value qualifiers take? |
| 13 | + |
| 14 | + |
| 15 | +Issue text |
| 16 | +========== |
| 17 | + |
| 18 | +Proposals for the timestamp format are: |
| 19 | + |
| 20 | +ISO time format |
| 21 | +--------------- |
| 22 | + |
| 23 | +A date+time string in ISO format like "2017-06-21T13:30:01.123456+02:00" |
| 24 | + |
| 25 | +The fractional seconds are optional, but the timezone has to be given. Z is allowed instead of +00:00. |
| 26 | + |
| 27 | +Advantages: |
| 28 | + |
| 29 | +* human readable |
| 30 | + |
| 31 | +Disadvantages: |
| 32 | + |
| 33 | +* needs more conversion efforts, as the time is internally already stored as |
| 34 | + numbers on mosts systems (supporting math operations) |
| 35 | +* although the ISO standard is clearly defined, there is a risk that time zones |
| 36 | + and daylight saving time is not handled properly |
| 37 | + |
| 38 | +Fractional Unix Time |
| 39 | +-------------------- |
| 40 | + |
| 41 | +Seconds since 1970-01-01T00:00:00+00:00, represented as a number. When converted |
| 42 | +to a IEEE double, a resolution of 1 usec can be kept for dates up to 2112. |
| 43 | + |
| 44 | +Advantages: |
| 45 | + |
| 46 | +* if a double is used as an internal representation, no conversion is |
| 47 | + needed. using a double as an internal time representation has the advantage, |
| 48 | + that math operations can be done for free. |
| 49 | +* relative times for systems with no synchronized clock can be represented |
| 50 | + easily |
| 51 | + |
| 52 | +Disadvantages: |
| 53 | + |
| 54 | +* not human readable (or at least not easily: time differences in seconds are |
| 55 | + still visible) |
| 56 | + |
| 57 | +Discussion |
| 58 | +---------- |
| 59 | + |
| 60 | +1) Human readibility was judged less important than easy implementaion by the majority. |
| 61 | + |
| 62 | +2) Implementing relative times is also easier. |
| 63 | + |
| 64 | +Decision |
| 65 | +-------- |
| 66 | + |
| 67 | +At the meeting in Berlin (2017-05-30) the attendes decided for "Fractional Unix Time". |
| 68 | +The resolution of the timestamp depends on the hardware, but must be at least one second. |
0 commit comments