ICSharpCode.SharpZipLib.Zip.NTTaggedData.IsValidValue C# (CSharp) Method

IsValidValue() public static method

Test a valuie to see if is valid and can be represented here.
NTFS filetimes are 64-bit unsigned integers, stored in Intel (least significant byte first) byte order. They determine the number of 1.0E-07 seconds (1/10th microseconds!) past WinNT "epoch", which is "01-Jan-1601 00:00:00 UTC". 28 May 60056 is the upper limit
public static IsValidValue ( System.DateTime value ) : bool
value System.DateTime The value to test.
return bool
        public static bool IsValidValue(DateTime value) {
            bool result=true;
            try {
                value.ToFileTimeUtc();
            } catch {
                result=false;
            }
            return result;
        }
    }