Julian time and seconds
조회 수: 3 (최근 30일)
이전 댓글 표시
Hi, I'm working with two time series with the time specified in Julian time. I need to work out the difference between the start time in each data set. Anyone know how?? Thanks D
댓글 수: 1
Jan
2011년 10월 20일
Please post the format of your inputs and the wanted output. Are you talking of a DOUBLE vector or a cell string?
답변 (1개)
Peter Perkins
2017년 9월 21일
>> d1 = juliandate(datetime('today'))
d1 =
2458017.5
>> d2 = d1 + 1234
d2 =
2459251.5
>> between(datetime(d1,'ConvertFrom','juliandate'), datetime(d2,'ConvertFrom','juliandate'))
ans =
calendarDuration
3y 4mo 16d
>> between(datetime(d1,'ConvertFrom','juliandate'), datetime(d2,'ConvertFrom','juliandate'),'days')
ans =
calendarDuration
1234d
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Dates and Time에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!