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/pull/59#issuecomment-37505097,https://api.github.com/repos/pydata/xarray/issues/59,37505097,MDEyOklzc3VlQ29tbWVudDM3NTA1MDk3,1217238,2014-03-13T06:58:15Z,2014-03-13T06:58:15Z,MEMBER,"If you're sure that 'time' is stored as `pandas.DatetimeIndex` (e.g., you use a standard calendar and all dates within roughly 1700-2300), you can do those comparisons with `ds['time'].index`, which even lets you compare to strings: `ds['time'].index > '2014-01-01'`. But I agree it would be nice to have a general `to_datetime` method like pandas. If we already wrote this functionality (and it was somewhat tricky), we might as well expose it to users. ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,29067976 https://github.com/pydata/xarray/pull/59#issuecomment-37503963,https://api.github.com/repos/pydata/xarray/issues/59,37503963,MDEyOklzc3VlQ29tbWVudDM3NTAzOTYz,514053,2014-03-13T06:32:59Z,2014-03-13T06:32:59Z,CONTRIBUTOR,"Yeah, does seem that way. Unfortunately that makes comparison with datetime objects a bit awkward. Perhaps we should include a to_datetime() the way pandas does? Certainly, it would be convenient to be able to do comparisons such as: ds['time'].data > datetime.datetime(2014, 01, 01) This is definitely not high priority though. ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,29067976 https://github.com/pydata/xarray/pull/59#issuecomment-37434012,https://api.github.com/repos/pydata/xarray/issues/59,37434012,MDEyOklzc3VlQ29tbWVudDM3NDM0MDEy,1217238,2014-03-12T16:58:56Z,2014-03-12T16:58:56Z,MEMBER,"So I think the unfortunate reality is that np.datetime64 is still our best option. Otherwise we are left with dates as Python objects, which is painfully slow. ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,29067976 https://github.com/pydata/xarray/pull/59#issuecomment-37433623,https://api.github.com/repos/pydata/xarray/issues/59,37433623,MDEyOklzc3VlQ29tbWVudDM3NDMzNjIz,514053,2014-03-12T16:55:52Z,2014-03-12T16:55:52Z,CONTRIBUTOR,"I'll go ahead and merge this in to fix the bug ... but I wonder if there is any way we can avoid using np.datetime64 objects. They seem under-developed / broken. ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,29067976