Class DateTimeValueLib

Description

This class is used to produce DateTimeValue object based on timestamos, strings etc

  • version: 1.0

Located in /environment/classes/datetimevalue/DateTimeValueLib.class.php (line 9)


	
			
Method Summary
static DateTimeValue make (integer $hour, integer $minute, integer $second, integer $month, integer $day, integer $year)
static DateTimeValue makeFromString (string $str)
static DateTimeValue now (void 0)
Methods
static method make (line 32)

This function works like mktime, just it always returns GMT

static DateTimeValue make (integer $hour, integer $minute, integer $second, integer $month, integer $day, integer $year)
  • integer $hour
  • integer $minute
  • integer $second
  • integer $month
  • integer $day
  • integer $year
static method makeFromString (line 43)

Make time from string using strtotime() function. This function will return null if it fails to convert string to the time

static DateTimeValue makeFromString (string $str)
  • string $str
static method now (line 17)

Returns current time object

static DateTimeValue now (void 0)
  • void 0

Documentation generated on Wed, 23 Jan 2008 01:58:34 +0000 by phpDocumentor 1.4.0