NAME

Data::Tersify::Plugin::DateTime - tersify DateTime objects

SYNOPSIS

use Data::Tersify;
print dumper(tersify({ now => DateTime->now }));
# Prints just today's date and time in yyyy-mm-ss hh:mm:ss format,
# rather than a full screen of DateTime internals

DESCRIPTION

This class provides terse description for DateTime objects.

handles

It handles DateTime objects only.

tersify

It summarises DateTime objects into either yyyy-mm-dd or yyyy-mm-dd hh:mm:ss, depending on whether there's a time component to the DateTime object or not.