MATLAB Function Reference Previous page   Next Page
now

Return current date and time

Syntax

Description

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

Examples

See Also

clock, date, datenum


Previous page  notebook nthroot Next page

© 1994-2005 The MathWorks, Inc.