Camelia

class X::Temporal::Truncation

src
    class X::Temporal::Truncation does X::Temporal { }

 
Thrown when DateTime.truncated-to or Date.truncated-to are called in a way that doesn't make sense. For example
    Date.new(2012, 08, 24).truncated-to(:microsecond);

 
dies with
    Error while truncating 2012-08-24: unknown truncation unit 'microsecond'

 

Methods

invocant

Returns the object on which the failed truncated-to method was called.

error

Returns a textual description of what actually went wrong.

Perl 6 Tricks and Treats newsletter

Register to the free newsletter now, and get updates and news.
Email:
Name: