필터 지우기
필터 지우기

how do i get the set the current time as a datenum

조회 수: 4 (최근 30일)
Andrew Cuaki
Andrew Cuaki 2022년 2월 23일
답변: Arif Hoq 2022년 2월 23일
i need to create an app that compares the current time to a given time

답변 (1개)

Arif Hoq
Arif Hoq 2022년 2월 23일
t = datetime('now','TimeZone','local','Format','d-MMM-y HH:mm:ss Z') % current time
t = datetime
23-Feb-2022 08:25:13 +0000
datenum(t) % datenumber
ans = 7.3858e+05

카테고리

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