On Fri, Mar 6, 2015 at 7:59 AM, Charles R Harris <charlesr.har...@gmail.com> wrote:
> Datetime64 seems to use the highest precision > > In [12]: result_type(ones(1, dtype='datetime64[D]'), 'datetime64[us]') > Out[12]: dtype('<M8[us]') > > In [13]: result_type(ones(1, dtype='datetime64[D]'), 'datetime64[Y]') > Out[13]: dtype('<M8[D]') > Ah, yes, that's what I'm looking for. +1 from me to have this in asarray/asanyarray. Of course, there is always the usual caveats about converting your datetime data in this manner, but this would be helpful in many situations in writing functions that expect to deal with temporal data at the resolution of minutes or somesuch. Cheers! Ben Root
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion