Exemplo n.º 1
0
 /// <summary>
 /// Gets the current age, from the specified date of birth. The age is calculated based on <paramref name="dt"/>.
 /// </summary>
 /// <param name="dateOfBirth">The date of birth.</param>
 /// <param name="dt">The date used for calculating the age.</param>
 /// <returns>The age based on the specified date of birth at the moment of <paramref name="dt"/>.</returns>
 public static int GetAge(EssentialsDateTime dateOfBirth, EssentialsDateTime dt)
 {
     return(TimeUtils.GetAge(dateOfBirth, dt));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Gets the current age, from the specified date of birth. The age is calculated based on <paramref name="dt"/>.
 /// </summary>
 /// <param name="dateOfBirth">The date of birth.</param>
 /// <param name="dt">The date used for calculating the age.</param>
 /// <returns>The age based on the specified date of birth at the moment of <paramref name="dt"/>.</returns>
 public static int GetAge(DateTime dateOfBirth, DateTime dt)
 {
     return(TimeUtils.GetAge(dateOfBirth, dt));
 }