how do i get the set the current time as a datenum
4 次查看(过去 30 天)
显示 更早的评论
i need to create an app that compares the current time to a given time
0 个评论
回答(1 个)
Arif Hoq
2022-2-23
t = datetime('now','TimeZone','local','Format','d-MMM-y HH:mm:ss Z') % current time
datenum(t) % datenumber
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Dates and Time 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!