NAME

UID2::Client::Timestamp - Timestamp object for UID2::Client

SYNOPSIS

use UID2::Client::Timestamp;

my $timestamp = UID2::Client::Timestamp->now();

DESCRIPTION

Timestamp object for UID2::Client.

CONSTRUCTOR METHODS

now

my $now = UID2::Client::Timestamp->now();

from_epoch_second

my $timestamp = UID2::Client::Timestamp->from_epoch_second($epoch_second);

from_epoch_milli

my $timestamp = UID2::Client::Timestamp->from_epoch_milli($epoch_milli);

METHODS

get_epoch_second

my $epoch_second = $timestamp->get_epoch_second();

get_epoch_milli

my $epoch_milli = $timestamp->get_epoch_milli();

is_zero

my $is_zero = $timestamp->is_zero();

add_days

my $new_timestamp = $timestamp->add_days($days);

add_seconds

my $new_timestamp = $timestamp->add_seconds($seconds);

SEE ALSO

UID2::Client

AUTHOR

Jiro Nishiguchi <jiro@cpan.org>