there is a typo on the The withXXXmethods section:
Code: Select all
Period p1 = Period.ZERO.withDays(10);
p1 = p1.withMonthss(2);
p1 = p1.withYearss(1); //p1 now points to a Period with 1 year, 2 months, and 10 days
Thanks!
Moderator: admin
Code: Select all
Period p1 = Period.ZERO.withDays(10);
p1 = p1.withMonthss(2);
p1 = p1.withYearss(1); //p1 now points to a Period with 1 year, 2 months, and 10 days
Users browsing this forum: Google [Bot] and 37 guests