Translations:Rule Examples/148/en

Материал из Wiren Board

if (end_date >= start_date) {

     if ((now >= start_date) && (now < end_date)) {
       return true;
     }
   } else {
     // end date is less than start date, 
     // assuming they belong to a different days (e.g. today and tomorrow)