Skip to content

Instantly share code, notes, and snippets.

@zoffixznet
Created January 5, 2017 19:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zoffixznet/eb2d13d35e49725bcfd0b17d87233290 to your computer and use it in GitHub Desktop.
Save zoffixznet/eb2d13d35e49725bcfd0b17d87233290 to your computer and use it in GitHub Desktop.
$ perl6 -e '.say for DateTime.^lookup("new").candidates».signature'
(DateTime $: \y, \mo, \d, \h, \mi, \s, :$timezone = 0, :&formatter, *%_)
(DateTime $: :$year!, :$month = 1, :$day = 1, :$hour = 0, :$minute = 0, :$second = 0, :$timezone = 0, :&formatter, *%_)
(DateTime $: Date:D :$date!, *%_)
(DateTime $: Instant:D $i, :$timezone = 0, *%_)
(DateTime $: Numeric:D $time is copy, :$timezone = 0, :&formatter, *%_)
(DateTime $: Str:D $datetime, :$timezone is copy, :&formatter, *%_)
(Dateish $: *%_)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment