Skip to content

Commit 41235bb

Browse files
committed
rfc: test converting issues
1 parent 98757c1 commit 41235bb

2 files changed

Lines changed: 111 additions & 0 deletions

File tree

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
- Feature: Equipment ID in Describing Message
2+
- Status: Rejected
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+
Could the equipment ID go into the "specifier" field of the "describing"
13+
message?
14+
15+
16+
Issue text
17+
==========
18+
19+
The equipment ID is a SEC node property, and it is therefore redundant
20+
to put it as the second item of the describe message.
21+
22+
However as the describe/describing message might be extended later, for
23+
example to get the description of single modules only, we should specify
24+
a fixed word for the second item of the describe message, for example the
25+
keyword "ALL" or "All".
26+
27+
At the meeting in Berlin (2017-05-30) this was discussed, but it was not
28+
yet decided the the keyword should be exactly. Until a final decision,
29+
SECoP clients should ignore the second item.
30+
31+
Opinions
32+
--------
33+
34+
We should use key keyword ALL (Markus Zolliker).
35+
36+
Decision
37+
--------
38+
39+
The decision was taken to use a bare period as placeholder:
40+
41+
.. code::
42+
43+
describing . {"modules": ...

rfcs/RFC-903-timestamps.rst

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
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

Comments
 (0)