Beispiel #1
0
 /// <summary>
 /// Determines if the provided birthdate provides an age that satisfies COPPA requirements
 /// </summary>
 /// <param name="yyyymmdd">Birthdate as a YYYYMMDD date string</param>
 /// <returns>True if the calculated age meets COPPA requirements &amp; False otherwise</returns>
 public static bool AgeMeetsCOPPARequirements(string yyyymmdd)
 {
     return(AgeMeetsCOPPARequirements(DateTimeExtensions.FromString(yyyymmdd)));
 }
Beispiel #2
0
 /// <summary>
 /// Determines if the provided birthdate provides an age that satisfies COPPA requirements
 /// </summary>
 /// <param name="birthdate">Birthdate as Unix timestamp in UTC</param>
 /// <returns>True if the calculated age meets COPPA requirements &amp; False otherwise</returns>
 public static bool AgeMeetsCOPPARequirements(long birthdate)
 {
     return(AgeMeetsCOPPARequirements(DateTimeExtensions.FromMillis(birthdate)));
 }