DConAD is a differencing-based contrastive representation learning framework for time series anomaly detection.It aims to capture robust and representative dependencies within time series for identifying anomalies.DConAD generates differential data and utilizes transformer-based architecture to enhance the robustness of representation learning.Experimental results demonstrate the superiority and effectiveness of DConAD compared to nine baselines.