Applied the time differences to other timestamp functions