We propose and experimentally demonstrate an all-optical (all-fiber) temporal differentiator based on a simple π-phase-shifted fiber Bragg grating operated in reflection. The proposed device can calculate the first time derivative of the complex field of an arbitrary narrowband optical waveform