public static function format(
        UTCDateTime $date,
        string $format = 'd/m/Y H:i:s'
    ): string {
        return self::get($date)->format($format);
    }
public static function format(
        UTCDateTime $date,
        string $format = 'd/m/Y H:i:s'
    ): string {
        return self::get($date)->format($format);
    }
public static function format ( UTCDateTime $ date , string $ format = 'd/m/Y H:i:s' ) : string { return self :: get ( $ date ) -> format ( $ format ) ; }
Retrieves formated date time using timezone.

@param UTCDateTime $date
@param string      $format

@return string
Retrieves formated date time using timezone .