You are here

public static function DatexObjectUtils::mktime in Datex 7

See php mktime().

File

datex_api/datex_api_classes.inc, line 1055
API and helper functions used by other datex modules.

Class

DatexObjectUtils
Utitilities to work with a DatexObject

Code

public static function mktime($hour = NULL, $minute = NULL, $second = NULL, $month = NULL, $day = NULL, $year = NULL) {
  $date = DatexFormatter::toGregorian($year, $month, $day);
  $year = $year === NULL ? NULL : $date['year'];
  $month = $month === NULL ? NULL : $date['month'];
  $day = $day === NULL ? NULL : $date['day'];
  return mktime($hour, $minute, $second, $month, $day, $year);
}