Skip to content
Prev 363690 / 398502 Next

Time format lagging issue

That
  tmp1 - 30*60
can also be done as
  tmp1 - as.difftime(30, units="mins")
so you don't have to remember that the internal representation of POSIXct
is seconds since the start of 1970.  You can choose from the following
equivalent expressions.
  tmp1 - as.difftime(0.5, units="hours")
  tmp1 - as.difftime(1/2 * 1/24, units="days")
  tmp1 - as.difftime(30*60, units="secs")
  tmp1 - as.difftime(1/2 * 1/24 * 1/7, units="weeks")


Bill Dunlap
TIBCO Software
wdunlap tibco.com
On Wed, Aug 31, 2016 at 2:44 PM, MacQueen, Don <macqueen1 at llnl.gov> wrote: