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

Datetime formats inconsistent with the data #28

Open
ghost opened this issue Oct 20, 2020 · 0 comments
Open

Datetime formats inconsistent with the data #28

ghost opened this issue Oct 20, 2020 · 0 comments

Comments

@ghost
Copy link

ghost commented Oct 20, 2020

In the schema the datetime formats are "fmt:%Y-%m-%dT%H%M%SZ". For example:

{
    "name": "utc_timestamp",
    "description": "Start of timeperiod in Coordinated Universal Time",
    "type": "datetime",
    "format": "fmt:%Y-%m-%dT%H%M%SZ"
},

but data in time_series_15min_singleindex.csv has

2014-12-31T23:00:00Z,2015-01-01T00:00:00+0100,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
2014-12-31T23:15:00Z,2015-01-01T00:15:00+0100,,,,,,,,,,37248.0000,,,27913.0000,,,667.0000,,,27246.0000,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

Note the colons between hours, minutes and seconds.

I also wonder why the ’fmt:’ prefix. At least pandas to_datetime() function seems to be unable to use the format string with this prefix.

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

0 participants