From 8ec20295ba052e5666fc77b66c09445233943814 Mon Sep 17 00:00:00 2001 From: Hans Bolinder Date: Mon, 26 Nov 2018 13:12:26 +0100 Subject: stdlib: Let calendar:system_time_to_rfc3339() keep fractions RFC3339 mentions in paragraph 5.1 that if certain conditions are fulfilled, then sorting date and time strings results in a time-ordered sequence. One of the conditions is that the strings must have the same number of fractional second digits. This commits makes sure this is indeed the case. --- lib/stdlib/doc/src/calendar.xml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/stdlib/doc/src') diff --git a/lib/stdlib/doc/src/calendar.xml b/lib/stdlib/doc/src/calendar.xml index 6b4fa7f98a..5aee635c38 100644 --- a/lib/stdlib/doc/src/calendar.xml +++ b/lib/stdlib/doc/src/calendar.xml @@ -403,7 +403,11 @@ default is second. If some other unit is given (millisecond, microsecond, or nanosecond), the formatted string includes a - fraction of a second.

+ fraction of a second. The number of fractional second + digits is three, six, or nine depending on what time unit + is chosen. Notice that trailing zeros are not removed from + the fraction. +

-- 
cgit v1.2.3