title: POSIXct and for-loop
body: <p>I am found very strange behaviour of date printing and conversion to character, while iterating them in cycle. </p>
  
  <pre><code>&gt; foo = as.POSIXct(c("2015-10-10 UTC","2015-10-11 UTC"))
  &gt; foo
  [1] "2015-10-10 GMT" "2015-10-11 GMT"
  
  &gt; for (i in foo) print(i)
  [1] 1444435200
  [1] 1444521600
  
  &gt; for (i in 1:2) print(foo[i])
  [1] "2015-10-10 GMT"
  [1] "2015-10-11 GMT"
  </code></pre>
  
  <p>Why and how syntax influencing later conversion to character?</p>