フィルターのクリア

what will be the code for universal time in floating point days for the date1/1/2014 on 00:00:00 with reference time and date since 00:00:00 on 1/1/2000

3 ビュー (過去 30 日間)
reference date:1/1/2000 ;date format :day/month/year
reference time:00:00:00; time format:hr:min:sec
as i have to calculate for indian region time +5:30 thats why already given universal time as 00:00:00 for date 1/1/2014

回答 (1 件)

Steven Lord
Steven Lord 2021 年 3 月 29 日
The easiest way to create a variable to represent that date will be the datetime function. The caldays function may also be of use to you. See the documentation pages for those two functions for more information on how to use them, including some examples that you should be able to adapt.
  3 件のコメント
Steven Lord
Steven Lord 2021 年 3 月 29 日
Can you show us the code you've written to this point?
I think what you want to use is between but I'm not certain.
MONICA RAWAT
MONICA RAWAT 2021 年 4 月 2 日
T='2014-04-29 4:35:22';
jd=days(datetime(T) - datetime(2000,1,1));

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

カテゴリ

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