// Token: 0x060051C9 RID: 20937 RVA: 0x00184810 File Offset: 0x00182A10 public static DateTime GetNextFlushTime(DateTime current, int relativeSeconds, int deltaDays) { if (deltaDays < 1) { deltaDays = 1; } if (relativeSeconds < 0) { relativeSeconds = 0; } int hour = relativeSeconds / 3600; int minute = relativeSeconds / 60 % 60; int second = relativeSeconds % 60; int num; if (TimeCaculate.GetRelativeSecondsInOneDay(current) < relativeSeconds) { num = deltaDays - 1; } else { num = deltaDays; } DateTime dateTime = new DateTime(current.Year, current.Month, current.Day, hour, minute, second, 0); return(dateTime.AddDays((double)num)); }
// Token: 0x060051C6 RID: 20934 RVA: 0x001847B0 File Offset: 0x001829B0 public static DateTime GetLastTimeNexPeriodDay(DateTime time, int days) { return(TimeCaculate.GetLastTimeInOneDay(time).AddDays((double)days)); }