Displaying 2 results from an estimated 2 matches for "13may1902".
2010 Oct 29
7
date calculation
Hi list,
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
I'm using R2.12.0 on WinXP.
Thanks!
...Tao
2010 Oct 31
1
R-help Digest, Vol 92, Issue 31
...es
) which states that dst is used for relevant timezones (although this
behavior can be OS dependent), this is not really necessary.
For example, note that if one goes to a time before daylight savings:
> difftime(strptime("24NOV1902", format="%d%b%Y"),
>strptime("13MAY1902",format="%d%b%Y"), units="days")
Time difference of 195 days
and that the hours match exactly what one would expect given dst.
> difftime(strptime("24NOV2004", format="%d%b%Y"),
>strptime("13MAY2004",format="%d%b%Y"), units=&...