floating.pm

来自「1. 记录每个帖子的访问人情况」· PM 代码 · 共 44 行

PM
44
字号
package DateTime::TimeZone::Floating;use strict;use vars qw ($VERSION @ISA);$VERSION = 0.01;use DateTime::TimeZone;use base 'DateTime::TimeZone::OffsetOnly';sub new{    my $class = shift;    return bless { name => 'floating',                   offset => 0 }, $class;}sub is_floating { 1 }__END__=head1 NAMEDateTime::TimeZone::Floating - A time zone that is always local=head1 SYNOPSIS  my $floating_tz = DateTime::TimeZone::Floating->new;=head1 DESCRIPTIONThis class is used to provide the DateTime::TimeZone API needed byDateTime.pm, but for floating times, as defined by the RFC 2445 spec.A floating time has no time zone, and has an effective offset of zero.=head1 USAGEThis class has the same methods as a real time zone object, but theC<short_name_for_datetime()>, and C<category()> methods both returnundef.=cut

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?