# New Ticket Created by  Minimiscience 
# Please include the string:  [perl #67466]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=67466 >


- Time::gmtime doesn't handle having an optional argument well:

     $ perl6
     > say Time::gmtime;
     too few arguments passed (0) - 4 params expected
     in method Time::gmtime (src/gen_setting.pm:1466)
     called from Main (<unknown>:1)
     > say Time::gmtime(time);
     2009-07-12T03:22:49+0000

Note that the error message says that 4 parameters were expected, yet  
S32/Temporal.pod states that Time::gmtime may only take zero or one  
argument(s).

- Time::localtime does not seem to be implemented.

- Although gmtime must be called as "Time::gmtime", Time::time may  
only be called as "time".  I don't think it's supposed to work that way.

- Time::gmtime seems to ignore its argument.  The following code:

     #!/usr/bin/env perl6
     use v6;

     say time;
     say Time::gmtime(time);
     say Time::gmtime(0);
     say Time::gmtime(1000000000);
     say Time::gmtime(69.105);

     __END__

...produced this output when run:

     1247369274.71192
     2009-07-12T03:27:54+0000
     2009-07-12T03:27:54+0000
     2009-07-12T03:27:54+0000
     2009-07-12T03:27:54+0000

These problems were observed on Rakudo Perl #18 ("Pittsburgh") with  
revision 39599 of Parrot on Mac OS X 10.5.6.

Reply via email to