Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fwrite with POSIX type #1715

Closed
yitang opened this issue May 19, 2016 · 3 comments
Closed

fwrite with POSIX type #1715

yitang opened this issue May 19, 2016 · 3 comments

Comments

@yitang
Copy link

yitang commented May 19, 2016

Hi, I am tyring the fwrite function. it reallllly fast! But it doesn't support POSIXct. Is it a bug?

library(data.table)
ds <- data.table(id=1:10, x=Sys.time())
fwrite(ds, "~/tmp.csv")
fread("~/tmp.csv")
file.remove("~/tmp.csv")
R> 
    id         x
 1:  1 1.464e+09
 2:  2 1.464e+09
 3:  3 1.464e+09
 4:  4 1.464e+09
 5:  5 1.464e+09
 6:  6 1.464e+09
 7:  7 1.464e+09
 8:  8 1.464e+09
 9:  9 1.464e+09
10: 10 1.464e+09
@MichaelChirico
Copy link
Member

MichaelChirico commented May 19, 2016

Not a bug, just not yet supported (what you're seeing is the integer representation of your column, see unclass(ds$x)).

This is covered by #1664.

@arunsrinivasan
Copy link
Member

Dup of #1664. We're aware of this. It's on the to-do list.

@yitang
Copy link
Author

yitang commented May 22, 2016

thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants