public static function create(int $year = null, int $month = null, int $day = null, int $hour = null, int $minutes = null, int $seconds = null, $timezone = null, string $locale = null)
	{
		$year    = is_null($year) ? date('Y') : $year;
		$month   = is_null($month) ? date('m') : $month;
		$day     = is_null($day) ? date('d') : $day;
		$hour    = empty($hour) ? 0 : $hour;
		$minutes = empty($minutes) ? 0 : $minutes;
		$seconds = empty($seconds) ? 0 : $seconds;

		return new Time(date('Y-m-d H:i:s', strtotime("{$year}-{$month}-{$day} {$hour}:{$minutes}:{$seconds}")), $timezone, $locale);
	}
public static function create(int $year = null, int $month = null, int $day = null, int $hour = null, int $minutes = null, int $seconds = null, $timezone = null, string $locale = null)
	{
		$year    = is_null($year) ? date('Y') : $year;
		$month   = is_null($month) ? date('m') : $month;
		$day     = is_null($day) ? date('d') : $day;
		$hour    = empty($hour) ? 0 : $hour;
		$minutes = empty($minutes) ? 0 : $minutes;
		$seconds = empty($seconds) ? 0 : $seconds;

		return new Time(date('Y-m-d H:i:s', strtotime("{$year}-{$month}-{$day} {$hour}:{$minutes}:{$seconds}")), $timezone, $locale);
	}
public static function create ( int $ year = null , int $ month = null , int $ day = null , int $ hour = null , int $ minutes = null , int $ seconds = null , $ timezone = null , string $ locale = null ) { $ year = is_null ( $ year ) ? date ( 'Y' ) : $ year ; $ month = is_null ( $ month ) ? date ( 'm' ) : $ month ; $ day = is_null ( $ day ) ? date ( 'd' ) : $ day ; $ hour = empty ( $ hour ) ? 0 : $ hour ; $ minutes = empty ( $ minutes ) ? 0 : $ minutes ; $ seconds = empty ( $ seconds ) ? 0 : $ seconds ; return new Time ( date ( 'Y-m-d H:i:s' , strtotime ( "{$year}-{$month}-{$day} {$hour}:{$minutes}:{$seconds}" ) ) , $ timezone , $ locale ) ; }
Returns a new instance with the date time values individually set.

@param integer|null $year
@param integer|null $month
@param integer|null $day
@param integer|null $hour
@param integer|null $minutes
@param integer|null $seconds
@param null         $timezone
@param string|null  $locale

@return \CodeIgniter\I18n\Time
@throws \Exception
Returns a new instance with the date time values individually set .