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

1 vue (au cours des 30 derniers jours)
Andrew Cuaki
Andrew Cuaki le 23 Fév 2022
i need to create an app that compares the current time to a given time

Réponses (1)

Arif Hoq
Arif Hoq le 23 Fév 2022
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

Catégories

En savoir plus sur Dates and Time dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by