📄 floating.pm
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -