コード例 #1
0
        /// <summary>
        /// Null fields are considered to be valid
        /// </summary>
        private static bool ValidateNotBefore(DateTime?notBefore, DateTime now, TimeSpan allowedClockSkew)
        {
            if (notBefore == null)
            {
                return(true);
            }

            return(TimeRestrictionValidation.NotBeforeValid(notBefore.Value, now, allowedClockSkew));
        }