The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

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

SYNOPSIS

  use UID2::Client::XS;

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

DESCRIPTION

Timestamp object for UID2::Client::XS.

CONSTRUCTOR METHODS

now

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

from_epoch_second

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

from_epoch_milli

  my $timestamp = UID2::Client::XS::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::XS

AUTHOR

Jiro Nishiguchi <jiro@cpan.org>