@staticmethod
def get_time_string(time, unit):
    """
        Create a properly formatted string given a time and unit

        :param time: Time to format
        :type time: float
        :param unit: Unit to apply format of. Only supports hours ('h')
            and minutes ('m').
        :type unit: str
        :return: A string in format '{whole}:{part}'
        :rtype: str
        """
    supported_units = ['h', 'm']
    if unit not in supported_units:
        return '{}'.format(round(time, 2))
    hours, minutes = str(time).split('.')
    hours = int(hours)
    minutes = int(round(float('0.{}'.format(minutes)) * 60))
    return '{:02d}:{:02d}'.format(hours, minutes)
