Astro:...::Hour(3pm)
π NAME π
okay so bestie, we're on the user-contributed Perl documentation page for Astro:...::Hour(3pm), and the actual star of the show is Astro::Coords::Angle::Hour β Representation of an angle in units of hours. πβ¨
β¨ SYNOPSIS β¨
use Astro::Coords::Angle::Hour;
$ha = new Astro::Coords::Angle::Hour( "12h30m22.4s", units => 'sex');
$ha = new Astro::Coords::Angle::Hour( 12.53, units => 'hour);
$ha = new Astro::Coords::Angle::Hour( 12.53 );
πΈ DESCRIPTION πΈ
So this class is basically Astro::Coords::Angle's little sibling, except it represents the angle as a time. It's suitable for use as an hour angle or Right Ascension, and it inherits from Astro::Coords::Angle. π«
For hour angle, a range of PI is suitable; for Right Ascension, use 2PI. The default range is none at all. If no units are provided, the units will be guessed using the same scheme as for Astro::Coords::Angle β except that values greater than 2PI will be assumed to be decimal hours. No cap, that's just how it goes. π«Ά
π§ METHODS π§
π Accessor Methods
hoursβ Return the angle in decimal hours. π
$deg = $ang->hours;
π¦ General Methods
in_formatβ As for the base class implementation, except that'hour'(and its abbreviation) is a supported format. The'sexagesimal'format will result in a stringified form of the object in hours, minutes and seconds. π
$hr = $hour->in_format( 'hour' );
π Class Methods
The following methods control the default behaviour of the class. β¨
NDPβ As for the base class except that the default number of decimal places is3. This method has no effect on the base class. πDELIMβ As for the base class. The global value in this class does not have any effect on the base class. π
π AUTHOR π
Tim Jenness <t.jenness@cpan.org> π
π COPYRIGHT π
Copyright (C) 2004-2005 Tim Jenness. All Rights Reserved. π
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 3 of the License, 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, write to the Free Software Foundation, Inc., 59 Temple Place,Suite 330, Boston, MA 02111-1307, USA. πΈ
That's the whole Astro:...::Hour(3pm) page, bestie β perl v5.42.2, dated 2026-02-15, and yes, we ate. π
π¦π₯
π¦ where this page comes from
- alpine 3.24: perl-astro-coords-doc 0.23-r1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms