This is essentially no more than a wrapper to a number of L methods that simplifies conversion into local sidereal time of a datetime representation, such as returned by L), or seconds since the epoch, such as returned by L
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.
All methods expect a longitude, either in I or I - e.g. -3.21145 (London), 147.333 (Hobart, Tasmania) - or degrees+minutes - e.g., 147:19:58.8 (Hobart). See the L method in the Astro::Time module for valid representations of longitude. Note, however, the degrees, not hours, are here supported.
Firstly, there should be passed a string in any form parseable by L, e.g., "1995:01:24T09:08:17.1823213"; "21 dec 17:05"; "16 Nov 94 22:28:20 PST". There are system limitations in handling years outside of a certain range. Years less than 1000 will not parse. Years between 1000 and 1969, inclusive, will be rendered as 1970, and those greater than 2037 will be rendered as 2037. (LST deviates by only about 3 minutes from 1970 to 2037).
A timezone string can be specified as an optional third value for accurate parsing of the datetime string into "seconds since the epoch"; the local timezone is used if this is not specified. Valid representations of Timezone include the likes of "AEDT" and "EST" (parsed by L; i.e., a capital-letter string of 3-5 letters in length), or "Australia/Hobart" (parsed by L).
First argument equals either 'c' or 'm' (only the first letter is looked-up, case-insensitively). This, respectively, determines access to C (element 10) and C (element 9) returned by Perl's internal L function. Note that only modification-time is truly portable across systems; see L (paras 6 and 7).
[ year (4-digit only), month-of-year (i.e., nth month (ranging 1-12, or 01-12), not month index as returned by localtime()), day-of-month (1-31 (or 01-31)), hour (0 - 23), minutes, seconds ]
Range-checking of these values is performed by Astro::Time itself; digital representations such as "08" or "00" are stripped of leading zeroes for parseability to another module (so there's no need to add them as fillers). Ensure that the year is 4-digit representation.
A final timezone string - e.g., 'EST', 'AEDT' - is optional. Sending nothing, or an erroneous timezone string, assumes present local timezone. The format is as used by L or L; UTC+I format does not parse.
croak __PACKAGE__, '::ymdhms2lst: Need an array reference of datetime (6 values) to calculate LST' if ! ref $ymdhms eq 'ARRAY' or scalar @{$ymdhms} != 6;
Returns LST given seconds since the epoch. If you have a time in localtime format, see L to convert it into the format that can be used with this function.