Section 12(1)(a) in The Railway Passengers (Cancellation of Ticket and Refund of Fare) Rules, 2015
(a)either during the working hours of reservation office and upto six hours before the scheduled departure of the train subject to restriction on timings of this facility imposed by railway administration from time to time; or