| MATLAB Function Reference | Search  Help Desk |
| now | Examples See Also |
t = now
t = now
returns the current date and time as a serial date number. To return the time only, use rem(now,1). To return the date only, use floor(now).
t1 = now, t2 = rem(now,1)
t1 =
7.2908e+05
t2 =
0.4013
clock Current time as a date vector
date Current date string
datenum Serial date number