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::Object, Time::Seconds.
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
See the Time::Seconds module for time formatting and manipulation methods inherited by this class.
This file is part of Devel::Ladybug.