-
-
Notifications
You must be signed in to change notification settings - Fork 409
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
Generating Current Timestamp with microsecond with "SSSSSS" - Works but with padding three zeroes #658
Comments
Hi, I would like to contribute to your project, to gain in experience. Ayoub |
@abhija77 👋 , can you have a look at the CONTRIBUTING and BUILDING please. |
Hello :) I am new to open source contribution and came across this issue, which I would like to solve. But I just have a few questions.
|
I think this is the issue with Java 8, the
I'm also uncertain if this level of accuracy is necessary. Since the value is used for comparison with API returns, the nanoseconds (and even milliseconds) might not align with the actual return values. To me, this seems unnecessary. This is just my perspective, and I could be mistaken. Cheers,
|
I think we can close this issue. As you suggested, we can get almost the same result by this:
(... SSS}123 or SSS}456 etc... where SSS will resolve to random timelapsed mili-sec always and |
But then why to use 123 , we can use any random number , generated using (int) (Math.random() * 999) + 1 |
Good thought.
Probably not straight away as it has got Then to solve this you can pick the value from an earlier step by calling a static method if that helps. |
Looks like not an issue anymore |
Add documentation with some examples |
Actual
Expected
Potential Fix
The text was updated successfully, but these errors were encountered: