-
-
04 Apr 2021 00:54:06 UTC
- Distribution: DateTime-Format-Genealogy
- Module version: 0.04
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Repository
- Issues
- Testers (137 / 0 / 0)
- Kwalitee
Bus factor: 1- 87.70% Coverage
- License: open_source
- Perl: v5.6.2
- Activity
24 month- Tools
- Download (14.1KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Carp
- DateTime::Format::Natural
- Genealogy::Gedcom::Date
- namespace::clean
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
DateTime::Format::Genealogy - Create a DateTime object from a Genealogy Date
VERSION
Version 0.04
SYNOPSIS
SUBROUTINES/METHODS
new
Creates a DateTime::Format::Genealogy object.
parse_datetime($string)
Given a date, runs it through Genealogy::Gedcom::Date to create a DateTime object. If a date range is given, return a two element array in array context, or undef in scalar context
Returns undef if the date can't be parsed, is just a year or if it is an appoximate date starting with "c", "ca" or "abt". Can be called as a class or object method.
date: the date to be parsed quiet: set to fail silently if there is an error with the date strict: more strictly enforce the Gedcom standard, for example don't allow long month names
AUTHOR
Nigel Horne,
<njh at bandsman.co.uk>
BUGS
SEE ALSO
Genealogy::Gedcom::Date and DateTime
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc DateTime::Format::Gedcom
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=DateTime-Format-Gedcom
CPAN Ratings
LICENSE AND COPYRIGHT
Copyright 2018-2021 Nigel Horne.
This program is released under the following licence: GPL2
Module Install Instructions
To install DateTime::Format::Genealogy, copy and paste the appropriate command in to your terminal.
cpanm DateTime::Format::Genealogy
perl -MCPAN -e shell install DateTime::Format::Genealogy
For more information on module installation, please visit the detailed CPAN module installation guide.