Jim Gibson writes:
> On Oct 31, 2018, at 1:29 PM, Martin McCormick
> wrote:
> > my $t1 = Time::Piece->strptime("$obtime[1], %d %b %Y %H:%M:%S %z”);
>
> strptime is a method with two arguments: string to be parsed, format to
> be used for parsing. You have one argument: a double-quoted string
Sam writes:
>
>
>
> None of your arguments are right. For one, you are using the '%D' flag
> which is the same as saying '%m/%d/%y'
>
>
> This works fine from a quick command line test:
>
> perl -e 'use Time::Piece; $t = "30 Oct 2018 20:53:00 -0500"; print
> Time::Piece->strptime( $t, "%d %b