Type-Tiny-1.002001

PURPOSE

This example expands upon the Example::Types library defined in Type::Tiny::Manual::Libraries. It defines class types for DateTime and DateTime::Duration and some structured types for hashes that can be used to instantiate DateTime objects. It defines some coercions for the Datetime class type.

A simple Moose class is provided using some of these types and coercions. The class also defines a couple of extra coercions inline.