convert date to julian date using a reference date BC.

11 ビュー (過去 30 日間)
Serena Lee
Serena Lee 2019 年 6 月 5 日
コメント済み: Serena Lee 2019 年 6 月 6 日
I am trying to analyse some french oceanographic data that for some unexplainable reason uses a BC reference date. All the typical matlab functions I use to convert gregorian dates to julian assume the reference date is AD. Can anyone suggest a way to convert a BC gregorian date to a datenumber? Specifically 01 Jan 4713 BC.
Many thanks.
Serena

採用された回答

Walter Roberson
Walter Roberson 2019 年 6 月 6 日
juliandate() applied to a datetime object gives that system. Conversion back is
datetime(X, 'convertfrom', 'juliandate')
  1 件のコメント
Serena Lee
Serena Lee 2019 年 6 月 6 日
Thank you. That worked.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDates and Time についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by