Current time - datetime and datenum

조회 수: 6 (최근 30일)
Kaique Silva
Kaique Silva 2015년 6월 16일
답변: dpb 2015년 6월 16일
Hi, I am using the time as part of my plot, but I need to get the current time, just the time, not the data. I know that if I use the diatomite function ('now') will give me the current date and time, but my data is only with time, it doesn't have the date. Then I'd convert it with the datenum. Is there any function that could give just the current time?

채택된 답변

dpb
dpb 2015년 6월 16일
>> help now
now Current date and time as date number.
...
FLOOR(now) is the current date and REM(now,1) is the current time.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Dates and Time에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by