FUNCTION REFERENCE

clock

Return the current local date and time.

Return the current local date and time.

Syntax

v = clock

Returns [year month day hour minute seconds], with fractional seconds.

Example

size(clock)   % [1 6]

Differences from MATLAB: none known for this form on supported Windows, Linux and macOS hosts.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.