Linear Detrend and DC offset

Hi there!
I just want to ask if the DC offset remove and the Linear Detrend functions are the same or equivalent , I mean: In another software like Neuroscan (and many others) , there is a function called linear detrend, but I don't understand that function (what is for?) and if it is equal to BS dC offset remove function.

Thanks in advance!

Remove DC offset = compute the average over a baseline, subtract this average to all the signal
Linear detrend = evaluate a linear trend (constant increase or decrease) and subtracts it from the signal
Example: https://algorithmia.com/algorithms/TimeSeries/LinearDetrend

Thank You!!