home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 274364774

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/issues/1084#issuecomment-274364774 https://api.github.com/repos/pydata/xarray/issues/1084 274364774 MDEyOklzc3VlQ29tbWVudDI3NDM2NDc3NA== 1217238 2017-01-22T22:22:55Z 2017-01-22T22:22:55Z MEMBER

@spencerkclark It looks like dateutil's _parse method has dayfirst and yearfirst parameters to disambiguate such date. For netcdftime, I think we always want dayfirst=False, yearfirst=True (basically, use YYYY-MM-DD like ISO 8601).

I'm not super happy with using the private _parse method but I given that pandas uses it I suppose this is pretty safe. In the worse case scenario, it would be pretty easy to fork this logic from dateutil or a library with ISO-8601 parsing (e.g., Arrow).

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  187591179
Powered by Datasette · Queries took 0.569ms · About: xarray-datasette