def METHOD_NAME(self, reltime, timestamp):
    """Convert string of type 1d12h3m23s into absolute epoch"""
    secs = 0
    s = reltime
    if not reltime:
        return 0
    for t, mul in {
        "w": 3600 * 24 * 7,
        "d": 3600 * 24,
        "h": 3600,
        "m": 60,
        "s": 1,
    }.items():
        v = s.split(t)
        if len(v) == 2:
            secs += int(v[0]) * mul
        s = v[-1]
    return int((timestamp/1000) - secs) * 1000