original_string: 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);
      }
code: 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);
      }
code_tokens: 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 ) ; }
docstring: 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
docstring_tokens: Given field values obtains the corresponding timestamp .