Are the AWK in the 4.X branch and 5.X branch different? Looking at http://www.shelldorado.com/articles/awkcompat.html#os11 it seems the AWK in the 4.X branch has strftime. I have 5.3 in my machine and AWK doesn't have that function.