excel decimal time conversion

조회 수: 2 (최근 30일)
David C
David C 2013년 3월 28일
I have a PW protected excel spreadsheet that has a date/time column, but formatted as "general"
using xlsread, the timestamps (ie 8:51:42) are read into matlab as the numberic formatted time of 0.3692
How do you convert this decimal into the actual time?
datestr(0.3692) gives 1:15 PM and not the 8:51:42 that I expected to get
All help is appreciated!

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2013년 3월 28일
datestr(0.3692,'HH:MM:SS')
  댓글 수: 1
David C
David C 2013년 3월 28일
as i mentioned above, datestr gives a different answer
must have something to do with how excel converts a time into a decimal :(

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Time Series Objects에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by