Julian time and seconds

4 ビュー (過去 30 日間)
David Craig
David Craig 2011 年 10 月 20 日
回答済み: Peter Perkins 2017 年 9 月 21 日
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
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
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

カテゴリ

Help Center および File ExchangeCell Arrays についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by