Round off dates and times
Version 1.1.0.0 (5,99 ko) par
Kevin J. Delaney
Rounds off a datenum to the nearest second, minute, hour, day, month or year.
Rounds off a datenum to the nearest second, minute, hour, day, month or year. Zip file includes "units.m" (file 4093) by Henning Ressing.
Example: datenum_round_off(now, 'minute')
Citation pour cette source
Kevin J. Delaney (2026). Round off dates and times (https://fr.mathworks.com/matlabcentral/fileexchange/26374-round-off-dates-and-times), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Créé avec
R2009b
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS LinuxCatégories
En savoir plus sur Dates and Time dans Help Center et MATLAB Answers
Tags
Remerciements
Inspiré par : units.m
Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
| Version | Publié le | Notes de version | |
|---|---|---|---|
| 1.1.0.0 | Fixed H1 comment line so "lookfor" will work. |
||
| 1.0.0.0 |
