How to round datetime array to nearest minute?
Mostra commenti meno recenti
Sounds like quite a easy question but i've spent a lot of time and cant find the answer. Basically I have a datetime array, i want to reduce the precision to minute so that second and beyond(millisecond etc.) are all changed to zero. is there any fast way to do so? Many Thanks
Risposta accettata
Più risposte (1)
Ziye
il 14 Set 2017
0 voti
1 Commento
Peter Perkins
il 14 Set 2017
See Steve's suggestion below, i.e. dateshift.
Categorie
Scopri di più su Dates and Time in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!