greg2julian

This function converts the Gregorian dates to Julian dates.
ダウンロード: 2.6K
更新 2006/6/6

ライセンスの表示

0. Syntax: [JD,julianday] = juliandate(year,month,day,hour,min,sec)

1. Inputs:
year, month, day = date in Gregorian calendar.
hour,min,sec = time at Universal Time.

2. Outputs:
JD = Julian date.
julianday = day of week.

3. Example:
>> [a,b] = greg2julian(2006,5,30,2,30,28)
a =
2453885.60449074
b =
Tuesday

4. Notes:
- For all common era (CE) dates in the Gregorian calendar, and for more information, check the referents.
- The function was tested, using the julian date converter of U.S. Naval Observatory and the results were similar. You can check it.
- Trying to do the life... more easy with the conversions.

5. Referents:
Astronomical Applications Department. "Julian Date Converter". From U.S. Naval Observatory. http://aa.usno.navy.mil/data/docs/JulianDate.html
Duffett-Smith, P. (1992). Practical Astronomy with Your Calculator. Cambridge University Press, England. pp. 6.
Seidelmann, P. K. (1992). Explanatory Supplement to the Astronomical Almanac.
University Science Books, USA. pp. 5-56.
Weisstein, Eric W. "Julian Date". From World of Astronomy--A Wolfram Web Resource. http://scienceworld.wolfram.com/astronomy/JulianDate.html

Gabriel Ruiz Mtz.
May-2006

引用

Gabriel Ruiz-Martinez (2024). greg2julian (https://www.mathworks.com/matlabcentral/fileexchange/11243-greg2julian), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R14
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersDates and Time についてさらに検索
謝辞

ヒントを与えたファイル: GUI - Calender Convertor

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0.0

To find the days, it was only changed the loop to a cell array. Thanks to Jérôme.