@@ -44,7 +44,8 @@ strptime(x, format, tz = "")
4444 the specified number of digits will be printed for seconds , using
4545 \code {" \% OS<n>" } instead of \code {" \% S" } in the format , see also
4646 \sQuote {Details }. }
47- \item {\dots }{further arguments to be passed from or to other methods. }
47+ \item {\dots }{further arguments to be passed from or to other methods ; for
48+ \code {strftime()}, notably \code {digits }, passed to \code {format(< POSIXlt > )}. }
4849 \item {usetz }{logical. Should the time zone abbreviation be appended
4950 to the output ? This is used in printing times , and more reliable
5051 than using \code {" \% Z" }. }
@@ -237,13 +238,20 @@ strptime(x, format, tz = "")
237238 the standard interpretation.
238239
239240 Specific to \R is \c ode{\% OSn}, which for output gives the seconds
240- truncated to \c ode{0 <= n <= 6} decimal places (and if \c ode{\% OS} is
241- not followed by a digit, it uses \c ode{digits} unless that is
242- \c ode{NULL}, when \c ode{n = 0}). Note that the precedence is
243- \c ode{format="...\% OSn"} \e qn{\l l}{>>} \c ode{digits = n} \e qn{\l l}{>>}
244- \c ode{getOption("digits.secs")}. Further, for \c ode{strptime}
245- \c ode{\% OS} will input seconds including fractional seconds. Note that
246- \c ode{\% S} does not read fractional parts on output.
241+ truncated to exactly \c ode{0 <= n <= 6} decimal places. If \c ode{\% OS} is
242+ not followed by a digit, it uses up to \c ode{digits} decimals (only as
243+ many as necessary, i.e., not producing extra trailing zeros.
244+ The default \c ode{digits = NULL} corresponds to \c ode{digits = 0}.
245+
246+ Note that the precedence is \c ode{format=".. \% OSn .."} \e qn{\l l}{>>}
247+ \c ode{digits = n}, the latter initialized by default from
248+ \c ode{getOption("digits.secs")}.
249+ Currently, for output (\c ode{strftime()} and \c ode{format(<POSIX.t>)}),
250+ only \e mph{one} "\% OS" occurence is handled (per format string).
251+ \c r
252+ Further, for \c ode{strptime} \c ode{\% OS} will input seconds including
253+ fractional seconds (to full precison). Note that \c ode{\% S} does not
254+ read or write fractional parts.
247255
248256 The behaviour of other conversion specifications (and even if other
249257 character sequences commencing with \c ode{\% } \e mph{are} conversion
0 commit comments