Hi
I’m using ruby 1.9.2 p290
It looks like strftime is inserting an extra space when using the
following format “%a %e-%b-%Y” and the dayofmonth < 10
for a Date of 1-Jun-2011
eg date.strftime("%a %e-%b-%Y") => “Fri 1-Jun-2011” (2 spaces between
Fri and 1)
For a Date of 12-Jun-2011
the same code gives (correctly) “Fri 12-Jun-2011”
Regards
dukha
Hello,
On Thu, Nov 3, 2011 at 3:44 PM, Mark L. [email protected] wrote:
It looks like strftime is inserting an extra space when using the
following format “%a %e-%b-%Y” and the dayofmonth < 10
for a Date of 1-Jun-2011
eg date.strftime(“%a %e-%b-%Y”) => “Fri 1-Jun-2011” (2 spaces between
Fri and 1)
http://www.kernel.org/doc/man-pages/online/pages/man3/strftime.3.html
| %e Like %d, the day of the month as a decimal number, but a leading zero
| is replaced by a space. (SU)
thanks,