develooper Front page | perl.perl5.porters | Postings from February 2003

[perl #21324] POSIX strftime

Thread Next
From:
Paul Denize
Date:
February 20, 2003 15:14
Subject:
[perl #21324] POSIX strftime
Message ID:
rt-21324-52553.10.0168194014528@bugs6.perl.org
# New Ticket Created by  Paul Denize 
# Please include the string:  [perl #21324]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=21324 >



I have noticed that I get a different result between our Linux version
(which I believe correct) and the Windoze version.

Script Linux

$ perl -e "use POSIX qw(strftime); print strftime(\"[%d]
[%e]\",0,0,0,01,01,99),\"\n\";"
[01] [ 1]

Script Windoze

C:\>perl -e "use POSIX qw(strftime); print strftime(\"[%d]
[%e]\",0,0,0,01,01,99),\"\n\";"  # 01-Feb-1999
[01] []

Note %e format flag fails


Paul Denize


-- $perl -v

This is perl, v5.6.1 built for i386-linux

Copyright 1987-2001, Larry Wall

Perl may be copied only under the terms of either the Artistic License or
the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'.  If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.

-- C:\>perl -v

This is perl, v5.6.1 built for MSWin32-x86-multi-thread
(with 1 registered patch, see perl -V for more detail)

Copyright 1987-2001, Larry Wall

Binary build 631 provided by ActiveState Tool Corp.
http://www.ActiveState.com
Built 17:16:22 Jan  2 2002


Perl may be copied only under the terms of either the Artistic License or
the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'.  If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About