In a message dated 7/24/98 1:26:24 PM, pudge@pobox.com wrote: >At 00.48 -0400 1998.07.24, Awrobinson@aol.com wrote: >>One of the examples in Lincoln Stein's book "Official Guide to Programming >>With CGI.pm" uses the Posix strftime() function. It didn't work with MacPerl. >>I got what I expected with the date formats, but not the time formats. '%r' is >>supposed to give the time in 12 hour format, but all it printed was "r". > >So you mean it does not work as expected, or maybe even does not work >properly. But surely POSIX::strftime() works. In the words of that great philosopher, Ed McMahon, "You are correct, sir!" It returned the date portion of the current time, but not the time portion. >>Likewise for '%Y' for 24 hour time. > >%Y is the 4-digit year, not a time. It works as expected for me. My bad. I meant '%T'. '%Y' did indeed work. '%T' did not. >>Can anyone tell me what the formats are for the MacPerl version of strftime() >>or point me to the equivalent of my "system's manpage"? > >Well, Date::Format also has strftime, and time2str (which uses time() >instead of an array). I have heard less than glowing things about it, but >it has worked in my experience, and %r works as expected. > >However, it seems the POSIX::strftime() misbehavior with %r is a bug. I was assuming it was my ignorance. I'll try the Date::Format version. Thanks! Andrew Robinson ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch