aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorPaul Eggert2019-02-25 11:33:51 -0800
committerPaul Eggert2019-02-25 11:34:43 -0800
commite3bb6f90e999a6d71537806573c48b9ceb3fb413 (patch)
treece802f5d8b071ec7208755f192ef9c7880f5a699 /doc
parent0d49078ad80f54b810180a071e2b6b4bcc024851 (diff)
downloademacs-e3bb6f90e999a6d71537806573c48b9ceb3fb413.tar.gz
emacs-e3bb6f90e999a6d71537806573c48b9ceb3fb413.zip
format-time-string: document new '+' flag
* doc/lispref/os.texi (Time Parsing), etc/NEWS: * src/timefns.c (Fformat_time_string): Document the new behavior, added for compatibility with POSIX.1-2017.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/os.texi8
1 files changed, 6 insertions, 2 deletions
diff --git a/doc/lispref/os.texi b/doc/lispref/os.texi
index cb8f25df0a3..59cd5a8fe8a 100644
--- a/doc/lispref/os.texi
+++ b/doc/lispref/os.texi
@@ -1600,7 +1600,9 @@ This is a synonym for @samp{%m/%d/%y}.
1600@item %e 1600@item %e
1601This stands for the day of month, blank-padded. 1601This stands for the day of month, blank-padded.
1602@item %F 1602@item %F
1603This stands for the ISO 8601 date format, i.e., @samp{"%Y-%m-%d"}. 1603This stands for the ISO 8601 date format, which is like
1604@samp{%+4Y-%m-%d} except that any flags or field width override the
1605@samp{+} and (after subtracting 6) the @samp{4}.
1604@item %g 1606@item %g
1605This stands for the year corresponding to the ISO week within the century. 1607This stands for the year corresponding to the ISO week within the century.
1606@item %G 1608@item %G
@@ -1680,7 +1682,9 @@ This stands for a single @samp{%}.
1680@end table 1682@end table
1681 1683
1682One or more flag characters can appear immediately after the @samp{%}. 1684One or more flag characters can appear immediately after the @samp{%}.
1683@samp{0} pads with zeros, @samp{_} pads with blanks, @samp{-} 1685@samp{0} pads with zeros, @samp{+} pads with zeros and also puts
1686@samp{+} before nonnegative year numbers with more than four digits,
1687@samp{_} pads with blanks, @samp{-}
1684suppresses padding, @samp{^} upper-cases letters, and @samp{#} 1688suppresses padding, @samp{^} upper-cases letters, and @samp{#}
1685reverses the case of letters. 1689reverses the case of letters.
1686 1690