Astro:...::Hour(3pm)

πŸ“¦ version 0.23, in alpine 3.24

πŸ’– 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 is 3. 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 (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