converting MJD in UT1 to calender date
조회 수: 49 (최근 30일)
이전 댓글 표시
how could I convert 2017 January 00:00:00.5912977 which is MJD 57754 in UT1 to year,month,day,hour,,,,,,seconds
댓글 수: 1
James Tursa
2024년 11월 23일 0:34
편집: James Tursa
2024년 11월 23일 1:57
Note: If you are trying to convert to/from UTC and UT1, then you will have to interpolate the UT1-UTC data from this source:
E.g., the finals2000A.all file.
답변 (1개)
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')
Various conversions from MJD 57754, since that was mentioned:
dt = datetime(57754,'Format','yyyy MMMM dd hh:mm:ss.SSSSSSS','ConvertFrom','MJD')
dt = datetime(57754,'Format','yyyy MMMM hh:mm:ss.SSSSSSS','ConvertFrom','MJD')
dt = datetime(57754,'Format','yyyy,MM,dd,hh,mm,ss','ConvertFrom','MJD')
dt = datetime(57754,'Format','yyyy,MM,dd,hh,,,,,,ss','ConvertFrom','MJD')
댓글 수: 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!