date: improve emulation of %e format