Current time - datetime and datenum
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi, I am using the time as part of my plot, but I need to get the current time, just the time, not the data. I know that if I use the diatomite function ('now') will give me the current date and time, but my data is only with time, it doesn't have the date. Then I'd convert it with the datenum. Is there any function that could give just the current time?
0 commentaires
Réponse acceptée
dpb
le 16 Juin 2015
>> help now
now Current date and time as date number.
...
FLOOR(now) is the current date and REM(now,1) is the current time.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Dates and Time dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!