(a) Under regulations prescribed pursuant to this subchapter, and notwithstanding subchapter V of chapter 55 of this title or any other law, the head of an agency may, on request of an employee serving in a foreign area—
(1) at an isolated post performing functions required to be maintained on a substantially continuous basis, grant the employee compensatory time off for an equal amount of time spent in regularly scheduled overtime work; or
(2) at a post in a locality that customarily observes irregular hours of work or where other special conditions are present, in order to cope with those special circumstances, grant the employee compensatory time off for an equal amount of time spent in regularly scheduled overtime work for use during the pay period in which it is earned.
Credit for compensatory time off earned under paragraph (2) shall not form the basis for any additional compensation.
(b) Compensatory time earned under this section shall be for use only while the employee is assigned to the post where it is earned. Any such compensatory time not used at the time the employee is reassigned to another post shall be forfeited.