how do i get the set the current time as a datenum
显示 更早的评论
i need to create an app that compares the current time to a given time
回答(1 个)
t = datetime('now','TimeZone','local','Format','d-MMM-y HH:mm:ss Z') % current time
datenum(t) % datenumber
类别
在 帮助中心 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!