how do i get the set the current time as a datenum
1 view (last 30 days)
Show older comments
i need to create an app that compares the current time to a given time
0 Comments
Answers (1)
Arif Hoq
on 23 Feb 2022
t = datetime('now','TimeZone','local','Format','d-MMM-y HH:mm:ss Z') % current time
datenum(t) % datenumber
0 Comments
See Also
Categories
Find more on Develop Apps Using App Designer in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!