DateTime::TimeZone::LMT - A Local Mean Time time zone for DateTime


NAME

DateTime::TimeZone::LMT - A Local Mean Time time zone for DateTime


SYNOPSIS

  use DateTime::TimeZone::LMT
  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
  $tz_office->longitude( 45.123 );
  # 45.123
  $tz_office->longitude;
  # 45.123


DESCRIPTION

This 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' or 'ephemeris'.


CONSTRUCTORS

This module has the following constructor:


ACCESSORS

DateTime::TimeZone::LMT objects provide the following accessor methods:

Compatability methods

The following methods always return the same value. They exist in order to make the LMT time zone compatible with the default DateTime::TimeZone modules.


Functions

This class also contains the following function:


SUPPORT

Support 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.


AUTHOR

Rick Measham <rickm@cpan.org> with parts taken from DateTime::TimeZone by Dave Rolsky <autarch@urth.org>.


COPYRIGHT

Copyright (C) 2003 Rick Measham. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

The full text of the license can be found in the LICENSE file included with this module.


SEE ALSO

datetime@perl.org mailing list

http://datetime.perl.org/