Beispiel #1
0
        /// <summary>
        /// 检查指定时间戳与当前时间对比,是否过期
        /// </summary>
        /// <param name="timeStamp">时间戳</param>
        /// <returns></returns>
        private bool GetIsOverdue(long timeStamp)
        {
            DateTime dt     = DataConvert.ConvertIntToDateTime(timeStamp);
            int      result = DateTime.Now.CompareTo(dt);

            if (result >= 0)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }