# clock

Current time

### t = clock

• It returns a six-element numeric vector, representing the current time in the format [Year Month Day Hour Minute Second].
• Hour is always in 24h format, independent of the device's settings.

### [t, d] = clock

• The output t has the same value as given by t = clock.
• d is a binary number, representing whether or not it is during Daylight Saving Time (DST).

Example 1: Suppose the current time is December 6, 2018, 19:54:43.11.

clock

ans =
Columns 1 through 5:
2018.   12.00   6.000   19.00   54.00
Column 6:
43.11