Capturing the temporal constraints of gradual patterns