original_string: public static function get_fields_from_time($time) {
          $calendartype = \core_calendar\type_factory::get_calendar_instance();
          $wrongfields = $calendartype->timestamp_to_date_array($time);
          return array('day' => $wrongfields['mday'],
                  'month' => $wrongfields['mon'], 'year' => $wrongfields['year'],
                  'hour' => $wrongfields['hours'], 'minute' => $wrongfields['minutes']);
      }
code: public static function get_fields_from_time($time) {
          $calendartype = \core_calendar\type_factory::get_calendar_instance();
          $wrongfields = $calendartype->timestamp_to_date_array($time);
          return array('day' => $wrongfields['mday'],
                  'month' => $wrongfields['mon'], 'year' => $wrongfields['year'],
                  'hour' => $wrongfields['hours'], 'minute' => $wrongfields['minutes']);
      }
code_tokens: public static function get_fields_from_time ( $ time ) { $ calendartype = \ core_calendar \ type_factory :: get_calendar_instance ( ) ; $ wrongfields = $ calendartype -> timestamp_to_date_array ( $ time ) ; return array ( 'day' => $ wrongfields [ 'mday' ] , 'month' => $ wrongfields [ 'mon' ] , 'year' => $ wrongfields [ 'year' ] , 'hour' => $ wrongfields [ 'hours' ] , 'minute' => $ wrongfields [ 'minutes' ] ) ; }
docstring: Given a timestamp, obtains corresponding field values.
  
  @param int $time Timestamp
  @return \stdClass Object with fields for year, month, day, hour, minute
docstring_tokens: Given a timestamp obtains corresponding field values .