Date, Time, and Angle Functions


The functions listed below are useful for working with coordinates and time. Some functions compute quantities, such as Julian Date whereas most perform conversions between date, time, and angle in various formats, such as converting DMS to degrees, and vice versa. Some classes such as CImage include several similar methods.

Date Functions

CalcAirmass

Calculates the airmass from celestial coordinates and time.

CalcJD

Calculates the standard Julian Date

CalcHJD

Calculates the heliocentric Julian Date which corrects the Julian Date for light travel time to the Sun.

CalcMJD

Calculates the Modified Julian Date which drops the most significant digits of the Julian Date.

FormatDate

Formats year, month, and day to a string.

FormatYmdStr

Formats a date string in containing various combinations of year, month, and day to a proper date string.

JdToDateTime

Converts a decimal Julian Date to two strings, one containing the day, year, and month, and the other containing hours, minutes, and seconds.

ParseJD

Converts a decimal Julian Date to six numbers for the day, year, month, hours, minutes, and seconds.

ParseYmd

Converts a date string containing year, month, and day to year, month, and day.

Time Functions

CalcLST

Calculates the local sidereal time from coordinates and location on Earth.

DateToYmd

Converts a date string to year, month, and day.

DayOfWeek

Converts the year, month, and day to the day of week.

FormatHmsStr

Formats a time string in containing various combinations of hours, minutes, and seconds to a proper time string.

FormatTime

Formats hours, minutes, and seconds to a proper time string.

JdToDateTime

Converts a decimal Julian Date to two strings, one containing the day, year, and month, and the other containing hours, minutes, and seconds.

ParseJD

Converts a decimal Julian Date to six numbers for the day, year, month, hours, minutes, and seconds.

HmsToHr

Converts a time string containing hours, minutes, and seconds to decimal hours.

HrToHms

Converts decimal hours to a time string containing hours, minutes, and seconds.

ParseHms

Converts a time string to hours, minutes, and seconds.

ParseHours

Converts decimal hours to hours, minutes, and seconds.

Angle Functions

CalcAirmass

Calculates the airmass from coordinates and time.

CalcSphAngle

Calculates the spherical angle between coordinates on the sky.

DegToDms

Converts decimal degrees to a string containing degrees, minutes, and seconds.

DegToHms

Converts decimal degrees to a string containing hours, minutes, and seconds.

DmsToDeg

Converts an angle string containing degrees, minutes, and seconds to decimal degrees.

FormatAngle

Converts time in degrees, minutes, and seconds to a string.

FormatDmsStr

Formats an angle string containing various combinations of degrees, minutes, and seconds to a proper angle string.

HmsToDeg

Converts a time string containing hours, minutes, and seconds to decimal degrees.

HmsToHr

Converts a time string containing hours, minutes, and seconds to decimal hours.

HrToHms

Converts decimal hours to a time string containing hours, minutes, and seconds.

ParseDegrees

Converts a decimal degrees 3 numbers for hours, minutes, and seconds.

ParseDms

Converts a degrees string to degrees, minutes, and seconds.

ParseHms

Converts a time string to hours, minutes, and seconds.

ParseHours

Converts decimal hours to hours, minutes, and seconds.

Related Topics

Contents

Angle Measurement Definition


Mira Pro x64 Script User's Guide, Copyright Ⓒ 2024 Mirametrics, Inc. All Rights Reserved.