From suharto_anggono at yahoo.com  Wed Feb 24 17:40:53 2016
From: suharto_anggono at yahoo.com (Suharto Anggono Suharto Anggono)
Date: Wed, 24 Feb 2016 16:40:53 +0000 (UTC)
Subject: [Rd] %OS on output
References: <2092113649.1876381.1456332053631.JavaMail.yahoo.ref@mail.yahoo.com>
Message-ID: <2092113649.1876381.1456332053631.JavaMail.yahoo@mail.yahoo.com>

R help on 'strptime' has the following in "Details" section.
Specific to R is ?%OSn?, which for output gives the seconds truncated to ?0 <= n <= 6? decimal places (and if ?%OS? is not followed by a digit, it uses the setting of ?getOption("digits.secs")?, or if that is unset, ?n = 3?).

In reality, for output, if '%OS' is not followed by a digit and getOption("digits.secs") is unset, the output has no fractional part, as if n = 0 is used.

> getOption("digits.secs")
NULL
> z <- strptime("20/2/06 11:16:16.683", "%d/%m/%y %H:%M:%OS")
> format(z, "%OS")
[1] "16"



[Rd] %OS on output
Suharto Anggono Suharto Anggono