Learn and Learn

Learn And Learn - great place for tutorials, references and how-to

Ruby – Find Astronomical Modified Julian Day – amjd Method with Examples

amjd method is used to return the the astronomical modified Julian day number. This method produced the fractional number, which is not properly adjusted by the offset. . amjd is a part of Date library in Ruby.

Syntax of amjd Method in Ruby

The syntax of amjd method in Ruby Language is:


Parameters of amjd Method in Ruby

x – Where x is any valid date which is required to be converted into an astronomical modified julian day number. This parameter is required.


Error Handling

If the x parameter is not a valid calendar date object the amjd method returns an error.


Return Value of amjd Method in Ruby

amjd method will return the astronomical modified Julian day number according to the Julian Calendar.


Use of amjd method / function in Ruby


Get the Astronomical Julian Day number in Ruby with amjd Method


LearnAndLearn.com © 2018 - All rights reserved