Sverre Johansen added the comment:
This is because of differences in GNU and BSD C stdlib; I get the same results
using the BSD and GNU versions of `date`.
$ date +"%q"
What does Python typically do in cases like this?
--
___
Pyth
New submission from Sverre Johansen :
There seems to be a platform difference in the way stftime handles
unknown format codes.
In OSX Python removes the percentage sign from the returned string when the
format code is unknown. In Linux it leaves it.
Look at the following example:
This is