OdessaGUIProject.UpdateChecker.IsTimeToCheck C# (CSharp) Method

IsTimeToCheck() private static method

private static IsTimeToCheck ( ) : bool
return bool
        private static bool IsTimeToCheck()
        {
            bool ret;

            var frequency = new TimeSpan(1, 0, 0, 0); // check every day

            var diff = DateTime.Today - Properties.Settings.Default.LastUpdateCheckDate;
            if (diff > frequency)
                ret = true;
            else
                ret = false;

            #if DEBUG
            // we still want to run the code above to make sure it works, but we want to overwrite things in the DEBUG build
            ret = true;
            #endif

            return ret;
        }