DateTime-Incomplete
    
    
  
  
  
view release on metacpan or search on metacpan
lib/DateTime/Incomplete.pm view on Meta::CPAN
Accessor methods (such as C<day()>) will return either a value or
C<undef>, but will never die.
=head1 THE "BASE" DATETIME
A C<DateTime::Incomplete> object can have a "base" C<DateTime.pm>
object.  This object is used as a default datetime in the
C<to_datetime()> method, and it also used to validate inputs to the
C<set()> method.
The base object must use the year/month/day system.  Most calendars
use this system including Gregorian (C<DateTime>) and Julian.  Note
that this module has not been well tested with base objects from
classes other than C<DateTime.pm> class.
By default, newly created C<DateTime::Incomplete> objects have no
base.
=head1 DATETIME-LIKE METHODS
Most methods provided by this class are designed to emulate the
lib/DateTime/Incomplete.pm view on Meta::CPAN
leap years.
It creates a C<DateTime::Incomplete> object with all date fields
defined, but with the time fields (hour, minute, etc.) set to undef.
=item * from_object( object => $object, ... )
This class method can be used to construct a new
C<DateTime::Incomplete> object from any object that implements the
C<utc_rd_values()> method.  All C<DateTime::Calendar> modules must
implement this method in order to provide cross-calendar
compatibility.  This method accepts a "locale" parameter.
If the object passed to this method has a C<time_zone()> method, that
is used to set the time zone.  Otherwise UTC is used.
It creates a C<DateTime::Incomplete> object with all fields defined.
=item * from_epoch( ... )
This class method can be used to construct a new
( run in 0.944 second using v1.01-cache-2.11-cpan-5dc5da66d9d )