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/4010#issuecomment-620097623,https://api.github.com/repos/pydata/xarray/issues/4010,620097623,MDEyOklzc3VlQ29tbWVudDYyMDA5NzYyMw==,14808389,2020-04-27T16:36:30Z,2020-04-28T11:03:06Z,MEMBER,"take a look at the result of `np.timedelta64(seconds=4)`: ```python In [2]: np.timedelta64(seconds=4) Out[2]: numpy.timedelta64(0) In [3]: np.timedelta64(dt.timedelta(seconds=4)) Out[3]: numpy.timedelta64(4000000,'us') In [4]: np.timedelta64(4, 's').astype(""timedelta64[us]"") Out[4]: numpy.timedelta64(4000000,'us') ``` so you need to also specify the desired unit or cast a `dt.timedelta` object. I'm not sure why `timedelta64` ignores the `seconds` kwarg, though.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,607678694 https://github.com/pydata/xarray/issues/4010#issuecomment-620456062,https://api.github.com/repos/pydata/xarray/issues/4010,620456062,MDEyOklzc3VlQ29tbWVudDYyMDQ1NjA2Mg==,2405019,2020-04-28T08:20:16Z,2020-04-28T08:20:32Z,CONTRIBUTOR,"Ah! It's an issue with how I am using `np.timedelta64` then. I (stupidly) assumed that `np.timedelta64` has the same call signature as `datetime.timedelta`. It appears that `np.timedelta64` silently ignores any kwargs 😕 Anyway, I won't be making that mistake again. Thank you @keewis !","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,607678694