All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.
Moderators: Site Manager , fjwalraven
foxxbl
Posts: 4 Joined: Tue Nov 29, 2016 12:32 pm
Location: Dublin,Ireland
Contact:
Post
by foxxbl » Mon Apr 17, 2017 11:57 am
Hi!
Note:
The following code example from the explanation is valid only if we static import java.time.temporal.ChronoUnit.MINUTES:
Code: Select all
// these two lines are equivalent
amount = start.until(end, MINUTES);
amount = MINUTES.between(start, end);
Maybe it would be clearer to use the same code style as the code from the question (ChronoUnit.Minutes):
Regards,
Boris
admin
Site Admin
Posts: 10036 Joined: Fri Sep 10, 2010 9:26 pm
Contact:
Post
by admin » Mon Apr 17, 2017 9:45 pm
Updated.
thank you for your feedback!
Paul.
If you like our products and services, please help us by posting your
review here .
Users browsing this forum: No registered users and 28 guests