public static function get_time_from_fields($year, $month, $day, $hour, $minute) {
        $calendartype = \core_calendar\type_factory::get_calendar_instance();
        $gregoriandate = $calendartype->convert_to_gregorian(
                $year, $month, $day, $hour, $minute);
        return make_timestamp($gregoriandate['year'], $gregoriandate['month'],
                $gregoriandate['day'], $gregoriandate['hour'], $gregoriandate['minute'], 0);
    }
public static function get_time_from_fields($year, $month, $day, $hour, $minute) {
        $calendartype = \core_calendar\type_factory::get_calendar_instance();
        $gregoriandate = $calendartype->convert_to_gregorian(
                $year, $month, $day, $hour, $minute);
        return make_timestamp($gregoriandate['year'], $gregoriandate['month'],
                $gregoriandate['day'], $gregoriandate['hour'], $gregoriandate['minute'], 0);
    }
public static function get_time_from_fields ( $ year , $ month , $ day , $ hour , $ minute ) { $ calendartype = \ core_calendar \ type_factory :: get_calendar_instance ( ) ; $ gregoriandate = $ calendartype -> convert_to_gregorian ( $ year , $ month , $ day , $ hour , $ minute ) ; return make_timestamp ( $ gregoriandate [ 'year' ] , $ gregoriandate [ 'month' ] , $ gregoriandate [ 'day' ] , $ gregoriandate [ 'hour' ] , $ gregoriandate [ 'minute' ] , 0 ) ; }
Given field values, obtains the corresponding timestamp.

@param int $year Year
@param int $month Month
@param int $day Day
@param int $hour Hour
@param int $minute Minute
@return int Timestamp
Given field values obtains the corresponding timestamp .