convert date to julian date using a reference date BC.

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')

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Calendar에 대해 자세히 알아보기

제품

태그

질문:

2019년 6월 5일

댓글:

2019년 6월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by