Class F_PlainDate_Elapsed

java.lang.Object
com.ssgllc.fish.f.plaindate.F_PlainDate_Elapsed

public class F_PlainDate_Elapsed extends Object
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

    Fields
    Modifier and Type
    Field
    Description
    com.ssgllc.fish.f.plaindate.UnitElapsedPlainDate
    Elapsed whole days.
    com.ssgllc.fish.f.plaindate.UnitElapsedPlainDate
    Elapsed whole calendar months.
    com.ssgllc.fish.f.plaindate.UnitElapsedPlainDate
    Elapsed whole weeks.
    com.ssgllc.fish.f.plaindate.UnitElapsedPlainDate
    Elapsed whole calendar years - the usual way to compute an age.
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • days

      public com.ssgllc.fish.f.plaindate.UnitElapsedPlainDate days
      Elapsed whole days.
    • weeks

      public com.ssgllc.fish.f.plaindate.UnitElapsedPlainDate weeks
      Elapsed whole weeks.
    • months

      public com.ssgllc.fish.f.plaindate.UnitElapsedPlainDate months
      Elapsed whole calendar months.
    • years

      public com.ssgllc.fish.f.plaindate.UnitElapsedPlainDate years
      Elapsed whole calendar years - the usual way to compute an age.