Parse

NAME

DateTime::Parse - DateTime parser

SYNOPSIS

use DateTime::Parse;
    my $date = DateTime::Parse.new('Sun, 06 Nov 1994 08:49:37 GMT');
    say $date.Date > Date.new('12-12-2014');

DESCRIPTION

Available formats:

  • rfc1123

  • rfc850

  • asctime

METHODS

method new

method new(Str $format, :$timezone is copy = 0, :$rule = 'TOP')

A constructor, where:

  • $format is the text we want to parse

  • $timezone is the timezone we want to get the date in (nyi)

  • $rule specifies which rule to use, in case we know what format we want to parse (see #Available_Formats)

AUTHOR

Filip Sergot (sergot) Website: filip.sergot.pl Contact: filip (at) sergot.pl

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.