Warning: session_start(): open(/var/lib/php/sessions/sess_pkcqpunl915oehpb529qmdlq9f, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
static LongRange dateStructureToTimestampRange(DateStructures.SomeDate d) {
ret dateStructureToTimestampRange(d, localTimeZone(), now(), true);
}
static LongRange dateStructureToTimestampRange(DateStructures.SomeDate d, TimeZone tz, long now, bool assumeFuture) {
delegate Day to DateStructures.
delegate Month to DateStructures.
delegate Year to DateStructures.
delegate CurrentWeekPlus to DateStructures.
delegate CurrentYearPlus to DateStructures.
delegate Weekday to DateStructures.
delegate TodayPlus to DateStructures.
// year
if (d instanceof CurrentYearPlus)
d = new Year(year(now) + ((CurrentYearPlus) d).nYears);
if (d cast Year)
ret longRange(yearToTimestamp(d.year, tz), yearToTimestamp(d.year+1, tz));
// month
if (d instanceof CurrentMonthPlus)
d = new Month(month(now) + ((CurrentMonthPlus) d).nMonths, ((CurrentMonthPlus) d).year);
if (d instanceof Month)
ret longRange(yearAndMonthToTimestamp(((Year) d.year).year, d.month);
fail("dateStructureToTimestampRange: unknown type" + d);
}