Date-Extract-P800Picture
view release on metacpan or search on metacpan
lib/Date/Extract/P800Picture.pm view on Meta::CPAN
Sets the filename to extract the date and hour from.
=item $obj-E<gt>extract()
Extract date and hour from the string and returns it as L<DateTime|DateTime>
object. Returns undef if no valid date could be extracted.
=back
=head1 CONFIGURATION AND ENVIRONMENT
No configuration and environment settings are used.
=head1 DEPENDENCIES
=over 4
=item * perl 5.14
=item * L<POSIX|POSIX>
=item * L<English|English>
=item * L<DateTime|DateTime>
=item * L<Readonly|Readonly>
=item * L<Moose|Moose>
=item * L<Test::More|Test::More>
=back
=head1 INCOMPATIBILITIES
=over 4
=item * To avoid ambiguity between more common date notations and the
Sony Ericsson P800's date notation this is a separate module. It's highly
unlikely that in any other setting "2000" means the first of January 2002.
=item * For perls earlier than 5.14 version 0.04 of this module provides the
same functionality in a perl 5.6 compatible way.
=back
=head1 DIAGNOSTICS
An exception in the form of an L<Exception::Class|Exception::Class> named
C<DateExtractP800PictureException> is thrown when a date can not be extracted
from the string:
=over 4
=item * No date found in filename '%s'
=item * Filename is not set, nothing to extract
=back
=head1 BUGS AND LIMITATIONS
=over 4
=item * The date could be from another timezone, based on the device settings
and when and where the picture was taken.
=item * Usually the files are transferred from the P800 to other systems in a
way that has not completely preserved the timestamp of the file, so there is
no reliable way to double check the results by comparing the date extracted
from the filename with the timestamp of the file.
=item * There are no error values to provide different exit statuses for
different failure reasons
=back
Please report any bugs or feature requests at
L<Bitbucket|
https://bitbucket.org/rolandvanipenburg/date-extract-p800picture/issues>.
=head1 AUTHOR
Roland van Ipenburg, E<lt>roland@rolandvanipenburg.comE<gt>
=head1 LICENSE AND COPYRIGHT
Copyright (C) 2008-2021, Roland van Ipenburg
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself, either Perl version 5.14.0 or,
at your option, any later version of Perl 5 you may have available.
=head1 DISCLAIMER OF WARRANTY
BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE
ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH
YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
NECESSARY SERVICING, REPAIR, OR CORRECTION.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENSE, BE
LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL,
OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE
THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
=cut
( run in 1.639 second using v1.01-cache-2.11-cpan-39bf76dae61 )