The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

BERT::Time - Time data type for BERT

SYNOPSIS

  use BERT;
  my $time = BERT::Time->new(255295581, 446228);
  my ($seconds, $microseconds) = $time->value;
  ($seconds, $microseconds) = split /\./, $time;

DESCRIPTION

This module is intended to be used with BERT to specify a time value. It is overloaded to act almost exactly like a string.

See the BERT specification at http://bert-rpc.org/.

METHODS

$time = BERT::Time->new($seconds, $microseconds)

Creates a new BERT::Time object initialized with $seconds and $microseconds as its time value.

($seconds, $microseconds) = $time->value

Returns all of the arguments that were passed to new() as-is.

AUTHOR

Sherwin Daganato <sherwin@daganato.com>

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

BERT