def deltatime_str(deltatime_seconds: float) -> str:
    """
    Convert time in a format appropriate of time.

    Parameters
    ----------
    deltatime_seconds : float
        Represents the elapsed time in seconds

    Returns
    -------
    time_str : str
        Represents time in a format hh:mm:ss

    Examples
    --------
    >>> from pymove.utils.datetime import deltatime_str
    >>> deltatime_str(1082.7180936336517)
    '18m:02.718s'

    Notes
    -----
    Output example if more than 24 hours: 25:33:57
    https://stackoverflow.com/questions/3620943/measuring-elapsed-time-with-the-time-module

    """
    hours, rem = divmod(deltatime_seconds, 3600)
    minutes, seconds = divmod(rem, 60)
    if hours:
        return f'{int(hours):0>2}h:{int(minutes):0>2}m:{seconds:05.2f}s'
    elif minutes:
        return f'{int(minutes):0>2}m:{seconds:05.2f}s'
    else:
        return f'{seconds:05.2f}s'