フィルターのクリア

converting MJD in UT1 to calender date

43 ビュー (過去 30 日間)
Jes
Jes 2022 年 5 月 20 日
編集済み: Voss 2022 年 5 月 20 日
how could I convert 2017 January 00:00:00.5912977 which is MJD 57754 in UT1 to year,month,day,hour,,,,,,seconds

回答 (1 件)

Voss
Voss 2022 年 5 月 20 日
編集済み: Voss 2022 年 5 月 20 日
Convert 2017 January 00:00:00.5912977 to year,month,day,hour,,,,,,seconds, as requested:
dt = datetime('2017 January 00:00:00.5912977', ...
'InputFormat','yyyy MMMM hh:mm:ss.SSSSSSS', ...
'Format','yyyy,MM,dd,hh,,,,,,ss')
dt = datetime
2017,01,01,12,,,,,,00
Various conversions from MJD 57754, since that was mentioned:
dt = datetime(57754,'Format','yyyy MMMM dd hh:mm:ss.SSSSSSS','ConvertFrom','MJD')
dt = datetime
2017 January 01 12:00:00.0000000
dt = datetime(57754,'Format','yyyy MMMM hh:mm:ss.SSSSSSS','ConvertFrom','MJD')
dt = datetime
2017 January 12:00:00.0000000
dt = datetime(57754,'Format','yyyy,MM,dd,hh,mm,ss','ConvertFrom','MJD')
dt = datetime
2017,01,01,12,00,00
dt = datetime(57754,'Format','yyyy,MM,dd,hh,,,,,,ss','ConvertFrom','MJD')
dt = datetime
2017,01,01,12,,,,,,00

カテゴリ

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