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

Date and Date Time casting and precision issues (for discussion) #75

Open
rufuspollock opened this issue Jan 19, 2013 · 2 comments
Open

Comments

@rufuspollock
Copy link
Contributor

Currently have the problem that a csv file with the following input:

 2012-08-11

Will get converted and returned as:

 2012-08-11T00:00:00

The basic issue is that we don't get a sense of precision.

There are several options:

  1. Guess type but do not use this for parsing (bad IMO because we don't convert thursday 25th january to something standard - though this could be a good thing ??)
  2. Leave it to clients to strip unnecessary precision
  3. Do a hack to strip T00:00:00 style stuff from all dates when do serialization to json ...
@nigelbabu
Copy link
Contributor

I'd go with option 2. Clients can easily strip out unnecessary precision as long as we're sending data in one standard format, which we are.

@rufuspollock
Copy link
Contributor Author

Right but it is sort of unexpected and leads to data changing from it source - e.g. i see 2012-08-01 in the csv source but end up with 2012-08-01 00:00:00 or similar ...

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

No branches or pull requests

2 participants