Code covered by the BSD License  

Highlights from
Round off dates and times

Be the first to rate this file! 18 Downloads (last 30 days) File Size: 5.99 KB File ID: #26374

Round off dates and times

by Kevin J. Delaney

 

13 Jan 2010 (Updated 03 May 2010)

Rounds off a datenum to the nearest second, minute, hour, day, month or year.

| Watch this File

File Information
Description

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')

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
units.m

MATLAB release MATLAB 7.9 (2009b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
03 May 2010

Fixed H1 comment line so "lookfor" will work.

Tag Activity for this File
Tag Applied By Date/Time
datenum Kevin J. Delaney 14 Jan 2010 10:26:38
round Kevin J. Delaney 14 Jan 2010 10:26:38
date Kevin J. Delaney 14 Jan 2010 10:26:38
time Kevin J. Delaney 14 Jan 2010 10:26:38

Contact us at files@mathworks.com