Contents Previous Next Subchapters

Determining The Date and Time
Syntax clock
See Also mlmode_clock , time

Description
Returns the day of the week, month, day of the month, time, and year as a twenty-four-column character row vector.

The clock function output is as follows:
Column Data Example
1-3 day of week "Fri"
5-7 month "Oct"
9-10 day of month "21"
12-13 hour "12"
15-16 minute "39"
18-19 second "17"
21-24 year "1994"
Example
Entering
     clock
at 12:39:17 P.M. on Friday, October 21, 1994, resulted in
     Fri Oct 21 12:39:17 1994