code: public function mapToFrom($value)
      {
          $hours   = floor($value / 60);
          $minutes = $value - $hours * 60;
  
          return sprintf('%d:%02d', $hours, $minutes);
      }
docs: @param \DateTime $value
  
  @return mixed