Hi

I have encountered something a little strange with using certain format
options in strftime.

What I'm trying to do is strip the leading zero from the hour for a
date/time display, and the following code works with *nix builds from
1.8.4 upwards, but not with the 1.8.6p111 build for win32 and 1.8.6p114
for OS X -

  Time.now.strftime('%-1I')

On both, I get "-1I", instead of "9" (for example)

I've also tried the hidden option

  Time.now.strftime('%l')

which, again, works under *nix, but not win32 (haven't tried OS X)

I thought it might be a POSIX compatibility thing, but with OS X having
the same issues, I'm not so sure.

Does anyone have any ideas?

Thanks
Darryl

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"WellRailed" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/WellRailed?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to