[Git][NTPsec/ntpsec][master] Document the Mode 6 date stamp format.
Eric S. Raymond
gitlab at mg.gitlab.com
Tue Nov 8 03:39:25 UTC 2016
Eric S. Raymond pushed to branch master at NTPsec / ntpsec
Commits:
eafb0ebc by Eric S. Raymond at 2016-11-07T22:39:13-05:00
Document the Mode 6 date stamp format.
- - - - -
1 changed file:
- docs/mode6.txt
Changes:
=====================================
docs/mode6.txt
=====================================
--- a/docs/mode6.txt
+++ b/docs/mode6.txt
@@ -102,8 +102,16 @@ in a way convenient for visibility.
Values may be decimal numeric literals, decimal float literals, hex
numeric literals led with "0x", binary literals consisting of exactly
-two of digits 0 and 1, or string literals enclosed in double
-quotes. String literals never contain newlines or other control
+two of digits 0 and 1, NTP date stamps, or string literals enclosed in
+double quotes.
+
+NTP date stamps are represented by hexadecimal fixed-point literals
+led with "0x", distinguished from hexadecimal integers by the embedded
+radix point ("."). They represent seconds (and fractional seconds)
+since the epoch of the current NTP era. NTP era zero began at 00:00
+of January 1st 1900.
+
+String literals never contain newlines or other control
characters. One quirk of the format is that a bare variable name
without a following "=" may be interpreted in context as an
instruction to set a string-valued variable to the empty string.
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/eafb0ebcd623ee39671424223b9d3a02bde1243b
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20161108/196cd28a/attachment.html>
More information about the vc
mailing list