MATLAB Function Reference    
now

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


  notebook null