def deltatime_to_str_short(deltatime):
    """
    Creates a relative string from a deltatime object. For example, "1d3h", for 1 day and 3 hours.
    :param deltatime: The deltatime object.
    :return: The generated string from the deltatime.
    """
    result = []
    if deltatime.days > 0:
        result.append(str(deltatime.days) + 'd')
    m, s = divmod(deltatime.seconds, 60)
    h, m = divmod(m, 60)

    if h > 0:
        result.append(str(h) + 'h')
    if m > 0:
        result.append(str(m) + 'm')
    if s > 0:
        result.append(str(s) + 's')

    if len(result) == 0:
        result = ['$[now]']

    return ''.join(result)