David Gilden wrote:

> I have small problem here, check out the following:
> 
> #!/usr/bin/perl 
> 
> use CGI qw/:standard/;
> use CGI::Carp qw(fatalsToBrowser);
> use POSIX 'strftime';
> 
> # This works fine on Earthlink's servers using:
> 
> print OUT strftime('%A, %B %1d, %Y %I:%M %p',localtime) ,"\n";
> 
> #returns: Wednesday, June 19, 2002 02:01 PM
> 
> #but at CI-Host, I get this string:
> 
> print OUT strftime('%A, %B %D, %Y %I:%M %p',localtime) ,"\n";
> #returns: Wednesday, June d, 2002 12:53 PM
> 
> How can I fix this to work at CI-Host, (I think they are runing Apache)


have you tried reading the documentation for posix?

from the docs:

If you want your code to be portable, your format (fmt) argument should 
use only the conversion specifiers defined by the ANSI C standard. These 
are aAbBcdHIjmMpSUwWxXyYZ%.

i don't see 'D' in that list.  and besides, your earthlink fmt has 
'%1d', while your ci-host fmt has '%D'.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to