bool IsActive(GuEvent news) { long nowTime = DateUtil.GetTimeStamp(); return(long.Parse(news.expiry_time) > nowTime && long.Parse(news.effect_time) < nowTime); }
bool IsExpired(GuEvent news) { return(long.Parse(news.expiry_time) < DateUtil.GetTimeStamp()); }