perl6/doc/lib/X/Temporal/Truncation

doc src
(title) class X::Temporal::Truncation
    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

(head2) invocant
Returns the object on which the failed truncated-to method was called.
(head2) 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: