-
Notifications
You must be signed in to change notification settings - Fork 979
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
format.ITime broken for negative values #811
Comments
👍 Much thanks for the fix as well. Incorporated this. Will commit (and close) soon. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
format.ITime returns incorrect output for negative values. E.g. in the following example you'd expect -1 second but you get -01:59:59 because the
%/%
used in format.ITime does not work as intended for values <0.A solution could look like this:
EDIT: tested with a current cvs version of data.table.
Thx
Stefan
The text was updated successfully, but these errors were encountered: