The GNU MathProg modeling language is an open source modeling language that implements a subset of the AMPL language

Significant editing of the AMPL model and data will be required because the implementation is a subset of AMPL at the time of this writing. Here is one example: In order to use the GNU MathProg language for the AMPL model, the time set should be given as integers, as in
set TT := 1..8;
in which case ord(t) = t.

On printing you can convert elements of TT to calendar dates as follows:

set TT := 1..8;

param START, symbolic, := "1jan04";

printf{t in TT} "...%s...",
time2str(str2time(START, "%d%b%y")+86400*(t-1), "%d%b%y");