Пример #1
0
 public static bool IsFuture(this LocalDate date)
 {
     return(Date.Today() < date);
 }
Пример #2
0
        public static uint Age(this LocalDate date)
        {
            var age = Date.Today().Year - date.Year;

            return((uint)(!date.PlusYears(age).IsFuture() || age == 0 ? age : age - 1));
        }