Time::LSTConvert date/time representations to local sidereal time via Astro-Time and other Date/Time modules | |
Download |
Time::LST Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Roderick Garton
- Publisher web site:
- http://search.cpan.org/~rgarton/
Time::LST Tags
Time::LST Description
Convert date/time representations to local sidereal time via Astro-Time and other Date/Time modules Time::LST is essentially no more than a wrapper to a number of Astro::Time methods that simplifies conversion into local sidereal time of a datetime representation, such as returned by Date::Calc), or seconds since the epoch, such as returned by time, or stat fields).Manditorily, you need to know the longitude (in degrees) of the space relevant to your time.Give a filepath to get the LST of its last modified time, or readily see what the LST is now.Get an accurate representation of the relevant datetime ("now," a given time, or a file's creation or modified time) in so many "seconds since the epoch", taking TimeZone into account.Optionally, a timezone string in some methods can be helpful for accurately parsing (solar) clock-and-calendar times.SYNOPSIS use Time::LST qw(datetime2lst filestat2lst now2lst time2lst ymdhms2lst); $long = -3.21145; # London, in degrees $lst_from_string = datetime2lst('1942:8:7T17:00:00', -3.21145, 'BST'); # note approx only for pre-1970 $data_mod_lst = filestat2lst('mod', 'valid_path_to_a_file', $long); # or filestat2lst('create', $path, $long) $now_as_lst = time2lst(time(), $long); $lst_from_aref = ymdhms2lst(, $long, 'EADT'); # optional timezone Requirements: · Perl
Time::LST Related Software