NAME
DateTimeX::Format::Excel::Types::Types - A Type::Tiny Excel DateTime type library
DESCRIPTION
This is a type library for DateTimeX::Format::Excel It doesn't really have good context outside of that. It is built on Type::Tiny.
Caveat utilitor
All type tests included with this package are considered to be the fixed definition of the types. Any definition not included in the testing is considered flexible.
This module uses Type::Tiny which can, in the background, use Type::Tiny::XS. While in general this is a good thing you will need to make sure that Type::Tiny::XS is version 0.010 or newer since the older ones didn't support the 'Optional' method.
Types
DateTimeHash
Definition: How to know if a hash meets the DateTime hash requirements
Range
Dict[
year => Int,
month => Optional[ Int ],
day => Optional[ Int ],
hour => Optional[ Int ],
minute => Optional[ Int ],
second => Optional[ Int ],
nanosecond => Optional[ Int ],
time_zone => Optional[ Str ],
]
DateTimeInstance
Definition: An instance of a DateTime object
ExcelEpoch
Definition: Numbers used by Microsoft Excel to descibe a point in time.
Range All numbers greater than or equal to 0
SystemName
Definition: labels for the different Excel calculation rules and epoch start.
Range win_excel|apple_excel
Named Coercions
HashToDateTime
Accepts: A DateTimeHash
Returns: A DateTime instance
Conversion Method: DateTime->new( $DateTimeHash );
SUPPORT
TODO
1. Nothing yet
AUTHOR
COPYRIGHT
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
This software is copyrighted (c) 2014, 2015 by Jed Lund
DEPENDENCIES
SEE ALSO
Smart::Comments - Turned on with $ENV{ Smart_Comments }