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

Antworten (1)

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

Kategorien

Mehr zu Startup and Shutdown finden Sie in Hilfe-Center und File Exchange

Produkte

Gefragt:

am 23 Feb. 2022

Beantwortet:

am 23 Feb. 2022

Community Treasure Hunt

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

Start Hunting!

Translated by