-
Notifications
You must be signed in to change notification settings - Fork 569
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
HV-897 and HV-981 #402
HV-897 and HV-981 #402
Conversation
* Avoiding some raw-type warnings * Adding missing @SInCE tags * Making jboss-logging-annotations referenceable in JavaDocs
…lendar to long (epoch time in milliseconds) - Marking TimeProvider as experimental
…al Java 8 date/time types
You know my stance on this: the proposed change and esp. the removal done for HV-981 restricts the usefulness of the API IMHO for no good reason. I simply don't see why it should not be supported to check whether e.g. Anyways, I have had my say, and I don't think we will come to an agreement. Feel free to move forward and apply the change. I just might ocassionally yell "Told you so" if users complain ;) |
I guess. On the other hand, I think this is also the most conservative approach. The |
I came across this while searching for the reason why |
@vguna Thanks for reporting back! In your case, how would you obtain the |
Call me naive but |
It really depends on your use case. This one uses the date-time from the
JVM, but this may not always be what you want. E.g. if you want to use the
local date for the currently logged in user in a server app with users in
many countries. Hence my question :)
|
But that isn't different from |
By the way, using non-customizable date sources significantly impairs the ability to test application code, as you generally don't want your tests to rely on their time of execution. |
If I write a testcase, that checks that birthdate is in the |
Yes, that's what's currently provided by the BV spec, but we are thinking to make this more flexible for BV 2.0. As a matter of fact, HV already has a specific SPI for this,
Yes, see above:
Others are batch jobs which may run with a "logical date" different from what's "now" on the JVM. E.g. re-running yesterday's invoicing batch etc. etc. Testing as said by @yrodiere is another one.
Lucky you then :) Had it more than once. But I take it using the JVM date and TZ would be fine for your use case. |
Yes, we already do that in HV via |
Ah I see. Yeah, seems lucky me ;). Thanks for the clarification. |
Here come my take at the
TimeProvider
.