src/Khayyam/DateTime.php
public function parseRelative($time)
	{
		$relative = $time['relative'];

		$ts = 0;
		
		$year   = (int)$relative['year'];
		$month  = (int)$relative['month'];
		$day    = (int)$relative['day'];
		$hour   = (int)$relative['hour'];
		$minute = (int)$relative['minute'];
		$second = (int)$relative['second'];

		$ts += $year * 365 * 24 * 60 * 60; 
		$ts += $month * 30 * 24 * 60 * 60; 
		$ts += $day * 24 * 60 * 60; 
		$ts += $hour * 60 * 60; 
		$ts += $minute * 60; 
		$ts += $second * 1; 

		return $ts;
	}
public function parseRelative($time)
	{
		$relative = $time['relative'];

		$ts = 0;
		
		$year   = (int)$relative['year'];
		$month  = (int)$relative['month'];
		$day    = (int)$relative['day'];
		$hour   = (int)$relative['hour'];
		$minute = (int)$relative['minute'];
		$second = (int)$relative['second'];

		$ts += $year * 365 * 24 * 60 * 60; 
		$ts += $month * 30 * 24 * 60 * 60; 
		$ts += $day * 24 * 60 * 60; 
		$ts += $hour * 60 * 60; 
		$ts += $minute * 60; 
		$ts += $second * 1; 

		return $ts;
	}
/*public function __wakeup()
{
return DateTimeZone;
}