Shi, Tao <shidaxia <at> yahoo.com> writes:

> Could someone explain to me why the following result is not a integer?
> 
> > difftime(strptime("24NOV2004", format="%d%b%Y"), strptime("13MAY2004", 
> >format="%d%b%Y"), units="days")
> Time difference of 195.0417 days

  Presumably because this goes across a daylight-savings time
adjustment?  0.0417=1/24 days is 1 hour ...

  Ben Bolker

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to