Thanks to visit codestin.com
Credit goes to github.com

Skip to content

datetime64("now") is undocumented #10003

Open
@damiendr

Description

@damiendr

I found out that you can get the current UTC date with np.datetime64("now").

However this isn't documented here and there are a few things about the behaviour that aren't obvious. For instance it seems that the precision cannot be greater than one second:

In [95]: np.datetime64("now", "ms")
Out[95]: numpy.datetime64('2017-11-11T08:10:31.000')

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions