|
NAMEDateTime::TimeZone::LMT - A Local Mean Time time zone for DateTimeVERSIONThis documentation refers to DateTime::TimeZone::LMT version 1.01.SYNOPSISuse DateTime::TimeZone::LMT; # Somewhere in Hawaii my $tz_lmt = DateTime::TimeZone::LMT->new( longitude => -174.2342 ); $now = DateTime->now( time_zone => $tz_lmt ); my $tz_office = DateTime::TimeZone::LMT->new( name => 'Office', longitude => -174.2343 ); $tz_office->make_alias; $now = DateTime->now( time_zone => 'Office' ); $tz_office->name; # Office # Relocate office to the neighbourhood of Volgograd $tz_office->longitude( 45.123 ); # 45.123 $tz_office->longitude; # 45.123 DESCRIPTIONThis module provides a 'Local Mean Time' timezone for DateTime. Using it you can determine the Mean Time for any location on Earth. Note however that the Mean Time and the Apparent Time (where the sun is in the sky) differ from day to day. This module may account for Local Apparent Time in the future but then again, the Solar:: modules will probably be a better bet.If you want more information on the difference between LMT and LAT, search the www for 'equation of time', 'analemma' or 'ephemeris'. (Shameless plug-in) You can for example take a look at the example text sun.pdf in the repository <https://github.com/jforget/metaperlualatex>. CONSTRUCTORSThis module has the following constructor:
ACCESSORS"DateTime::TimeZone::LMT" objects provide the following accessor methods:
Compatability methodsThe following methods always return the same value. They exist in order to make the LMT time zone compatible with the default "DateTime::TimeZone" modules.
FunctionsThis class also contains the following function:
DEPENDENCIESThis module depends on basic DateTime modules: DateTime and DateTime::TimeZone. It depends also on Params::Validate.BUGS AND LIMITATIONSNo known bugs.SUPPORTSupport for this module is provided via the datetime@perl.org email list. See <http://lists.perl.org/> for more details.Please submit bugs to the CPAN RT system at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=datetime%3A%3Atimezone%3A%3Almt> or via email at bug-datetime-timezone-lmt@rt.cpan.org. AUTHORRick Measham <rickm@cpan.org> with parts taken from DateTime::TimeZone by Dave Rolsky <autarch@urth.org>.Co-maintainer: Jean Forget (JFORGET at cpan dot org). COPYRIGHTCopyright (C) 2003, 2016 Rick Measham and Jean Forget. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself: GNU Public License version 1 or later and Perl Artistic License.The full text of the license can be found in the LICENSE file included with this module or at <http://www.perlfoundation.org/artistic_license_1_0> and <http://www.gnu.org/licenses/gpl-1.0.html>. Here is the summary of GPL: This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, see <http://www.gnu.org/licenses/> or write to the Free Software Foundation, Inc., <http://fsf.org>. SEE ALSOdatetime@perl.org mailing list<http://datetime.perl.org/>
Visit the GSP FreeBSD Man Page Interface. |