NAME

Neo4j::Types::Duration - Represents a Neo4j temporal duration value

VERSION

version 2.00

SYNOPSIS

$months      = $duration->months;
$days        = $duration->days;
$seconds     = $duration->seconds;
$nanoseconds = $duration->nanoseconds;

DESCRIPTION

Represents a temporal duration value in Neo4j. Includes months, days, seconds, and nanoseconds components, which are all expressed as integer numbers. The length of the duration is defined by the combination of these four components.

Duration values may be returned from a Neo4j database server. Generic Duration values may also be created locally. See "Duration" in Neo4j::Types::Generic.

Supported in Neo4j version 3.4 and above.

METHODS

Neo4j::Types::Duration specifies the following methods.

days

$days = $duration->days;

Return the size of the "days" component of this duration.

months

$months = $duration->months;

Return the size of the "months" component of this duration.

nanoseconds

$nanoseconds = $duration->nanoseconds;

Return the size of the "nanoseconds" component of this duration.

seconds

$seconds = $duration->seconds;

Return the size of the "seconds" component of this duration.

SEE ALSO

AUTHOR

Arne Johannessen <ajnn@cpan.org>

If you contact me by email, please make sure you include the word "Perl" in your subject header to help beat the spam filters.

COPYRIGHT AND LICENSE

This software is Copyright (c) 2021-2023 by Arne Johannessen.

This is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0 or (at your option) the same terms as the Perl 5 programming language system itself.