コード例 #1
0
 /**
  * Test that date data is handled right
  */
 public function testRawDate()
 {
     $value = new qCal_Value_Date('2009-04-23');
     $this->assertEqual($value->getValue(), qCal_Date::factory('2009-04-23'));
 }
コード例 #2
0
 /**
  * The format for the value type is expressed as the [ISO
  * 8601] complete representation, basic format for a calendar date. The
  * textual format specifies a four-digit year, two-digit month, and
  * two-digit day of the month. There are no separator characters between
  * the year, month and day component text.
  */
 public function testFormatsToISO8601()
 {
     $date = new qCal_Value_Date('Jan 15 2009');
     $this->assertEqual($date->__toString(), '20090115');
 }