NAME
Devel::Ladybug::TimeSpan - Time range object class
SYNOPSIS
use Devel::Ladybug::TimeSpan;
my $time = Devel::Ladybug::TimeSpan->new( 60*5 );
DESCRIPTION
Extends Devel::Ladybug::Float.
Stringifies as number of seconds unless overridden.
PUBLIC CLASS METHODS
assert(Devel::Ladybug::Class $class: *@rules)
Returns a new Devel::Ladybug::Type::TimeSpan instance which encapsulates the received Devel::Ladybug::Subtype rules.
create "YourApp::Example" => { someTime => Devel::Ladybug::TimeSpan->assert(...), # ... };
new(Devel::Ladybug::Class $class: Num $secs)
Returns a new Devel::Ladybug::TimeSpan instance which encapsulates the received value.
my $object = Devel::Ladybug::TimeSpan->new($secs);
SEE ALSO
This file is part of Devel::Ladybug.