-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Timestamp.now() throws an Error #5339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
|
Trivial implementations of this would just need to add these to the Cython cdef now(self):
return Timestamp(time.time() * 1e9)
cdef today(self):
return Timestamp(datetime.today()) |
It would also be nice if |
@JanSchulz care to take a stab at it? I don't think Cython will let you do
|
@JanSchulz |
Arent these class methods in datetime? Also u can call datetime.now instead On Saturday, October 26, 2013, jreback wrote:
Best, |
datetime.now() has less resolution than time.time() right? |
The precision of time is system dependent. The class method now, for On Sunday, October 27, 2013, Jeff Tratner wrote:
Best, |
Not sure if that is expected, but if it is expected it would be nice if the error message and the docsring of
Timestamp.now()
could be improved.The text was updated successfully, but these errors were encountered: