Returns true if given datetime string is not now AND is in the future.
/** * Test IsInTheFuture * * @return void */ public function testIsInTheFuture() { $testDate = date(FORMAT_DB_DATE, time() + 2 * DAY); $is = $this->Time->isInTheFuture($testDate); $this->assertTrue($is); $testDate = date(FORMAT_DB_DATETIME, time() - 1 * MINUTE); $is = $this->Time->isInTheFuture($testDate); $this->assertFalse($is); }