Date and Time Functions


The functions listed below are useful for working with date and time. Many of these functionsperforma computations like Julian Date, while others perform conversions like HMS to decimal hours, and vice versa. The CImage class and others include some similar methods.

Date Functions

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 celestial 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 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.

Related Topics

Contents

Angle Functions


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