修正ユリウス日

2023年3月23日18時23分45秒(JST)の時、MATLABを使って,修正ユリウス日を計算しなさい。ソースコードと計算結果を示しなさい。この問題教えてください

Answers (1)

Atsushi Ueno
Atsushi Ueno on 19 Mar 2023

0 votes

juliandateでいけると思います
t = datetime("2023-3-23 18:23:45", TimeZone="Asia/Tokyo");
jd = juliandate(t, "modifiedjuliandate")
jd = 6.0026e+04
datetime(jd, ConvertFrom="modifiedjuliandate", TimeZone="Asia/Tokyo") % 元に戻してみる
ans = datetime
23-Mar-2023 18:23:45

1 Comment

高倉
高倉 on 19 Mar 2023
ありがとうございます

Sign in to comment.

Asked:

on 19 Mar 2023

Commented:

on 19 Mar 2023

Community Treasure Hunt

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

Start Hunting!