Name
SPVM::Sys::Time::Timezone - struct timezone in C language
Usage
use Sys::Time::Timezone;
my $tz = Sys::Time::Timezone->new;
my $tz_minuteswest = $tz->tz_minuteswest;
$tz->set_tz_minuteswest(12);
my $tz_dsttime = $tz->tz_dsttime;
$tz->set_tz_dsttime(34);
Description
Sys::Time::Timezone
represents struct timezone
in C language
.
See gettimeofday(2) - Linux man page about struct timezone
in Linux.
Class Methods
new
static method new : Sys::Time::Timezone ()
Creates a new Sys::Time::Timezone
object.
my $tz = Sys::Time::Timezone->new;
Instance Methods
tz_minuteswest
method tz_minuteswest : int ()
Gets tz_minuteswest
.
my $tz_minuteswest = $tz->tz_minuteswest;
set_tz_minuteswest
method set_tz_minuteswest : void ($tz_minuteswest : int)
Sets tz_minuteswest
.
$tz->set_tz_minuteswest(12);
tz_dsttime
method tz_dsttime : int ()
Gets tz_dsttime
.
my $tz_dsttime = $tz->tz_dsttime;
set_tz_dsttime
method set_tz_dsttime : void ($tz_dsttime : int)
Sets tz_dsttime
.
$tz->set_tz_dsttime(34);