Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

set::infinite::arithmetic(3pm) [debian man page]

Set::Infinite::Arithmetic(3pm)				User Contributed Perl Documentation			    Set::Infinite::Arithmetic(3pm)

       NAME

       Set::Infinite::Arithmetic - Scalar operations used by quantize() and offset()

       AUTHOR

       Flavio Soibelmann Glock - fglock@pucrs.br

       %_MODE hash of subs

	   $a->offset ( value => [1,2], mode => 'offset', unit => 'days' );

	   $a->offset ( value => [1,2, -5,-4], mode => 'offset', unit => 'days' );

       note: if mode = circle, then "-5" counts from end (like a Perl negative array index).

	   $a->offset ( value => [1,2], mode => 'offset', unit => 'days', strict => $a );

       option 'strict' will return intersection($a,offset). Default: none.

       %subs_offset2($object, $offset1, $offset2)

	   &{ $subs_offset2{$unit} } ($object, $offset1, $offset2);

       A hash of functions that return:

	   ($object+$offset1, $object+$offset2)

       in $unit context.

       Returned $object+$offset1, $object+$offset2 may be scalars or objects.

       %Offset_to_value($object, $offset)

       %Init_quantizer($object)

	   $Offset_to_value{$unit} ($object, $offset);

	   $Init_quantizer{$unit} ($object);

       Maps an 'offset value' to a 'value'

       A hash of functions that return ( int($object) + $offset ) in $unit context.

       Init_quantizer subroutines must be called before using subs_offset1 functions.

       int(object)+offset is a scalar.

       Offset_to_value is optimized for calling it multiple times on the same object, with different offsets. That's why there is a separate
       initialization subroutine.

       $self->{offset} is created on initialization. It is an index used by the memoization cache.

perl v5.10.0							    2008-06-21					    Set::Infinite::Arithmetic(3pm)

Check Out this Related Man Page

DateTime::TimeZone::OffsetOnly(3)			User Contributed Perl Documentation			 DateTime::TimeZone::OffsetOnly(3)

NAME
DateTime::TimeZone::OffsetOnly - A DateTime::TimeZone object that just contains an offset VERSION
version 1.63 SYNOPSIS
my $offset_tz = DateTime::TimeZone->new( name => '-0300' ); DESCRIPTION
This class is used to provide the DateTime::TimeZone API needed by DateTime.pm, but with a fixed offset. An object in this class always returns the same offset as was given in its constructor, regardless of the date. USAGE
This class has the same methods as a real time zone object, but the "category()" method returns undef. DateTime::TimeZone::OffsetOnly->new ( offset => $offset ) The value given to the offset parameter must be a string such as "+0300". Strings will be converted into numbers by the "DateTime::TimeZone::offset_as_seconds()" function. $tz->offset_for_datetime( $datetime ) No matter what date is given, the offset provided to the constructor is always used. $tz->name() $tz->short_name_for_datetime() Both of these methods return the offset in string form. AUTHOR
Dave Rolsky <autarch@urth.org> COPYRIGHT AND LICENSE
This software is copyright (c) 2013 by Dave Rolsky. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.18.2 2013-10-28 DateTime::TimeZone::OffsetOnly(3)
Man Page