convert Julian Date to yyyy-mm-dd
이전 댓글 표시
I am analyzing the vertical profiles of the profiling robotic float ( ftp://ftp.ifremer.fr/ifremer/argo/dac/coriolis/6902905/ ). The dates are there stored as Julian Dates, field JULD. As I was converting them into format yyyy-mm-dd on Matlab, difficulties occurred. The Julian date used here is not as usual (first 2 digits year and last 3 digits days w.r.t. Jan 1st, nor the number of days w.r.t. 4713 BCE ). For example here 25856 represents 17-Oct-2020, which is confusing to me. Could someone please provide some instruction on this? Thank you very much!
댓글 수: 1
James Tursa
2020년 10월 19일
Can you explain how 25856 represents 17-Oct-2020? If the "first 2 digits year" is 25, how does that and 856 days result in a date in 2020?
채택된 답변
추가 답변 (1개)
Are you looking for this?
datetime(25856,'convertfrom','juliandate','Format','yyy-MM-dd')
which makes sense given,
datetime(0,'convertfrom','juliandate','Format','yyy-MMM-dd') + days(25856)
카테고리
도움말 센터 및 File Exchange에서 Dates and Time에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!