t = clock
- It returns a six-element numeric vector, representing the current time in the format
[Year Month Day Hour Minute Second].
Houris always in 24h format, independent of the device's settings.
[t, d] = clock
- The output
thas the same value as given by
t = clock.
dis 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.
ans = Columns 1 through 5: 2018. 12.00 6.000 19.00 54.00 Column 6: 43.11