在我电脑上是这样的
<br />
> Sys.time()<br />
[1] "2013-01-24 02:53:06 GMT"<br />
警告信息:<br />
1: In as.POSIXlt.POSIXct(x, tz) : unable to identify current timezone '':<br />
please set environment variable 'TZ'<br />
2: In as.POSIXlt.POSIXct(x, tz) : unknown timezone 'localtime'<br />
</p>
系统信息为:
<br />
sionInfo()<br />
R version 2.15.2 (2012-10-26)<br />
Platform: i386-w64-mingw32/i386 (32-bit)</p>
<p>locale:<br />
[1] LC_COLLATE=Chinese_People's Republic of China.936<br />
[2] LC_CTYPE=Chinese_People's Republic of China.936<br />
[3] LC_MONETARY=Chinese_People's Republic of China.936<br />
[4] LC_NUMERIC=C<br />
[5] LC_TIME=Chinese_People's Republic of China.936 </p>
<p>attached base packages:<br />
[1] stats graphics grDevices utils datasets methods base </p>
<p>loaded via a namespace (and not attached):<br />
[1] tools_2.15.2<br />
</p>
请问如何让Sys.time()获取正确的当前时间