Package com.ssgllc.fish.f.plaindate
Class F_PlainDate_Elapsed
java.lang.Object
com.ssgllc.fish.f.plaindate.F_PlainDate_Elapsed
Distance from one date to another, in a chosen unit - reached as
elapsed on an
F_PlainDate.
Pick the unit field first, then the direction: elapsed.years.after(birthDate) gives
completed years since that date, which is an age. Counts are whole units truncated towards zero.
-
Field Summary
FieldsModifier and TypeFieldDescriptioncom.ssgllc.fish.f.plaindate.UnitElapsedPlainDateElapsed whole days.com.ssgllc.fish.f.plaindate.UnitElapsedPlainDateElapsed whole calendar months.com.ssgllc.fish.f.plaindate.UnitElapsedPlainDateElapsed whole weeks.com.ssgllc.fish.f.plaindate.UnitElapsedPlainDateElapsed whole calendar years - the usual way to compute an age. -
Method Summary
-
Field Details
-
days
public com.ssgllc.fish.f.plaindate.UnitElapsedPlainDate daysElapsed whole days. -
weeks
public com.ssgllc.fish.f.plaindate.UnitElapsedPlainDate weeksElapsed whole weeks. -
months
public com.ssgllc.fish.f.plaindate.UnitElapsedPlainDate monthsElapsed whole calendar months. -
years
public com.ssgllc.fish.f.plaindate.UnitElapsedPlainDate yearsElapsed whole calendar years - the usual way to compute an age.
-