In what time zone are R's file.info()'s mtime expressed? -
In what time zone are R's file.info()'s mtime expressed? -
i have file windows (win7) explorer says mtime 24-oct-2014 12:39
. when inquire this/these properties in r using file.info()
, getting following:
file.info('r:/data/dm29/dm29 - sample_138_20141023_0737.dti') size isdir mode mtime ctime atime exe r:/data/dm29/dm29 - sample_138_20141023_0737.dti 35003850 false 666 2014-10-24 11:39:48 2014-10-23 07:40:32 2014-11-06 11:14:49 no
what's going on here? suppose has time zones cannot find reference in help. or perhaps due recent dst switch had?
additionally, how can prepare in idiomatic way? next feels bit kludge me.
mt <- as.posixct(file.info('r:/data/dm29/dm29 - sample_138_20141023_0737.dti')$mtime, tz='europe/london') attributes(mt)$tzone <- 'europe/amsterdam'
r
Comments
Post a Comment