Image-EXIF-DateTime-Parser
    
    
  
  
  
view release on metacpan or search on metacpan
lib/Image/EXIF/DateTime/Parser.pm view on Meta::CPAN
  printf "%d\n", $p->parse("2009:05:05 09:17:37");
    produces "1241540257", if you are in America/Los_Angeles timezone.
=head1 DESCRIPTION
While parsing standards-compliant EXIF Date/Time string is easy, allowing for
the various ways different non-standards-compliant implementations mangle these
strings is neither easy nor pleasant. This module encapsulates this complexity
for you. It provides a parser which takes an EXIF Date/Time string and returns
time in "calendar time" format, aka. time_t.
=head2 EXPORTS
Nothing.
=head2 METHODS
=over
=item $p = Image::EXIF::DateTime::Parser->new
lib/Image/EXIF/DateTime/Parser.pm view on Meta::CPAN
		# falls through on mktime() error
	}
	croak "Unrecognized invalid string [$string].\n";
}
=head1 SECURITY
The module untaints the input string and passes the numbers (and spaces in some
cases) as arguments to POSIX::mktime. Thus as long as mktime can deal with
numbers and/or spaces on its input, the worst that can happen is that an
invalid date/time string will produce a surprising calendar time value or an
undef.
=head1 CAVEATS
=head2 Non-canonical time strings
Because it uses POSIX::mktime, this module can accept theoretically invalid
field values (such as 32nd day of month) and canonicalize them by appropriately
changing other field values.
( run in 0.354 second using v1.01-cache-2.11-cpan-5dc5da66d9d )