[Perl] Perl6 et Date

Patrice Karatchentzeff patrice.karatchentzeff at gmail.com
Ven 17 Nov 19:52:21 CET 2017


Bon, ça fonctionne correctement 😊

Par contre, le paquet .deb est moyennement fait : tout s'installe dans
/opt. C'est mieux que rien mais ça oblige à jongler avec des liens.

Merci pour tout

PK

Le 17 novembre 2017 à 19:43, Patrice Karatchentzeff <
patrice.karatchentzeff at gmail.com> a écrit :

> Super... ça m'avait échappé et je tentais un backport...
>
> Merci 😊
>
> Le 17 novembre 2017 à 19:29, Dominix <d.minix at gmail.com> a écrit :
>
>> la ref pour rakudo (sauf core-devs) c'est https://github.com/nxadm/rakud
>> o-pkg/releases
>>
>>
>> Le 16/11/2017 à 22:52, Patrice Karatchentzeff a écrit :
>>
>> Salut Laurent
>>
>> J'ai celle emballée d'origine sur mon Linux :
>>
>> # perl6 -v
>> This is perl6 version 2015.11 built on MoarVM version 2015.11
>>
>> C'est effectivement pas très récent...
>>
>> Je vais chercher un paquet plus récent.
>>
>> Merci
>>
>> PK
>>
>> Le 16 novembre 2017 à 20:02, Laurent Rosenfeld <
>> laurent.rosenfeld at googlemail.com> a écrit :
>>
>>> Bonjour,
>>>
>>> pour moi, au REPL Rakudo, ça marche:
>>>
>>> > say DateTime.new(now) - DateTime.new(:year(2017), :month(10), :day(7),
>>> :hour(17), :minute(30))
>>> 3461273.374529
>>> True
>>>
>>> Et d'ailleurs ça marche aussi avec un script uniligne à la ligne de
>>> commande avec l'option -e.
>>>
>>> Quelle version de Rakudo utilises-tu?
>>>
>>> Cordialement,
>>> Laurent.
>>>
>>>
>>> Le 16 novembre 2017 à 17:40, Patrice Karatchentzeff <
>>> patrice.karatchentzeff at gmail.com> a écrit :
>>>
>>>> Salut
>>>>
>>>> Je fais mumuse avec Perl6 et je ne comprends pas l'erreur suivante :
>>>>
>>>>
>>>> % perl6 -e 'say DateTime.new(now) - DateTime.new(:year(2017),
>>>> :month(10), :day(7), :hour(17), :minute(30))'
>>>> Cannot call Numeric(DateTime: ); none of these signatures match:
>>>>     (Mu:U \v: *%_)
>>>>   in block <unit> at -e:1
>>>>
>>>> ​Quand on fait
>>>>
>>>> ​% perl6 -e 'say DateTime.new(:year(2017), :month(10), :day(7),
>>>> :hour(17), :minute(30))'
>>>> 2017-10-07T17:30:00Z
>>>>
>>>> % perl6 -e 'say DateTime.new(now) '
>>>> 2017-11-16T16:31:28Z
>>>>
>>>> On a bien le même format...
>>>>
>>>> Merci de l'explication du code retour de l'erreur car c'est cryptique
>>>> :-(
>>>>
>>>> ​PK​
>>>>
>>>>
>>>> --
>>>>       |\      _,,,---,,_           Patrice KARATCHENTZEFF
>>>> ZZZzz /,`.-'`'    -.  ;-;;,_   mailto:patrice.karatchentzeff at gmail.com
>>>>      |,4-  ) )-,_. ,\ (  `'-'      http://p.karatchentzeff.free.fr
>>>>     '---''(_/--'  `-'\_)
>>>>
>>>> _______________________________________________
>>>> Perl mailing list
>>>> Perl at mongueurs.net
>>>> http://listes.mongueurs.net/mailman/listinfo/perl
>>>>
>>>>
>>>
>>> _______________________________________________
>>> Perl mailing list
>>> Perl at mongueurs.net
>>> http://listes.mongueurs.net/mailman/listinfo/perl
>>>
>>>
>>
>>
>> --
>>       |\      _,,,---,,_           Patrice KARATCHENTZEFF
>> ZZZzz /,`.-'`'    -.  ;-;;,_   mailto:patrice.karatchentzeff at gmail.com
>>      |,4-  ) )-,_. ,\ (  `'-'      http://p.karatchentzeff.free.fr
>>     '---''(_/--'  `-'\_)
>>
>>
>> _______________________________________________
>> Perl mailing listPerl at mongueurs.nethttp://listes.mongueurs.net/mailman/listinfo/perl
>>
>>
>>
>> _______________________________________________
>> Perl mailing list
>> Perl at mongueurs.net
>> http://listes.mongueurs.net/mailman/listinfo/perl
>>
>>
>
>
> --
>       |\      _,,,---,,_           Patrice KARATCHENTZEFF
> ZZZzz /,`.-'`'    -.  ;-;;,_   mailto:patrice.karatchentzeff at gmail.com
>      |,4-  ) )-,_. ,\ (  `'-'      http://p.karatchentzeff.free.fr
>     '---''(_/--'  `-'\_)
>



-- 
      |\      _,,,---,,_           Patrice KARATCHENTZEFF
ZZZzz /,`.-'`'    -.  ;-;;,_   mailto:patrice.karatchentzeff at gmail.com
     |,4-  ) )-,_. ,\ (  `'-'      http://p.karatchentzeff.free.fr
    '---''(_/--'  `-'\_)
-------------- section suivante --------------
Une pièce jointe HTML a été nettoyée...
URL: <http://listes.mongueurs.net/mailman/private/perl/attachments/20171117/9c1496b9/attachment-0001.html>


Plus d'informations sur la liste de diffusion Perl