Help language development. Donate to The Perl Foundation

Time::localtime zef:lizmat last updated on 2021-09-09

t/01-basic.t
use v6.*;
use Test;

plan 13;

{
    use Time::localtime;
    for <&localtime &ctime> -> $name {
       ok OUTER::MY::<<$name>>:exists, "is $name imported by default?";
    }
}

{
    use Time::localtime :FIELDS;
    for <&localtime &ctime $tm_sec $tm_min $tm_hour $tm_mday $tm_mon $tm_year
         $tm_wday $tm_mday $tm_isdst> -> $name {
       ok OUTER::MY::<<$name>>:exists, "is $name imported by default?";
    }
}

# vim: expandtab shiftwidth=4