diff options
author | Hans Bolinder <[email protected]> | 2018-11-26 13:12:26 +0100 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2018-11-29 14:25:41 +0100 |
commit | 8ec20295ba052e5666fc77b66c09445233943814 (patch) | |
tree | c6fa88bfea02cc39f4df7d60ec84e54097d14f54 /lib/stdlib/doc | |
parent | 791742877a893e41d17bf2fd6b0e10c3dfebec8b (diff) | |
download | otp-8ec20295ba052e5666fc77b66c09445233943814.tar.gz otp-8ec20295ba052e5666fc77b66c09445233943814.tar.bz2 otp-8ec20295ba052e5666fc77b66c09445233943814.zip |
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.
Diffstat (limited to 'lib/stdlib/doc')
-rw-r--r-- | lib/stdlib/doc/src/calendar.xml | 6 |
1 files changed, 5 insertions, 1 deletions
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 <c>second</c>. If some other unit is given (<c>millisecond</c>, <c>microsecond</c>, or <c>nanosecond</c>), the formatted string includes a - fraction of a second.</p> + 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. + </p> </item> </taglist> <pre> |