Steffen Müller > Astro-Nova > Astro::Nova::ZoneDate

Download:
Astro-Nova-0.07.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Source  

NAME ^

Astro::Nova::ZoneDate - Perl representation of a libnova ln_zonedate

SYNOPSIS ^

  use Astro::Nova qw(functions ...);
  my $date = Astro::Nova::ZoneDate->new();
  $date->set_year(...);
  # ...
  print $date->as_ascii(), "\n";
  my @members = $date->get_all();

DESCRIPTION ^

This class represents a libnova ln_zonedate struct. The struct has the following layout:

  ln_zonedate {
    int  years
    int  months
    int  days
    int  hours
    int  minutes
    double  seconds
    long  gmtoff
  }

METHODS ^

new

Constructor returns a new Astro::Nova::ZoneDate. Optionally takes key/value pairs for setting the struct members. Extra arguments are ignored. Uninitialized struct members are set to zero.

get_... / set_...

Get or set any of the class attributes. (See list above)

get_all

Returns all members as a list.

set_all

Sets all members. Takes a list of values which must be in the order shown above. Any missing values are ignored, undefs are skipped.

as_ascii

Returns a human-readable ASCII table of the date information.

members

Returns a list of all members in order.

SEE ALSO ^

Astro::Nova

libnova website: http://libnova.sourceforge.net/

AUTHOR ^

Steffen Mueller, <smueller@cpan.org>

COPYRIGHT AND LICENSE ^

The Astro::Nova wrapper of libnova is copyright (C) 2009-2010 by Steffen Mueller.

The wrapper code is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.0 or, at your option, any later version of Perl 5 you may have available.

libnova is maintained by Liam Girdwood and Petr Kubanek.

libnova is released under the GNU LGPL. This may limit the licensing terms of the wrapper code. If in doubt, ask a lawyer.

syntax highlighting: