Skip to content

clock

time · scripts/time/clock.m

: datevec = clock ()
: [datevec, isdst] = clock ()

Current local date and time as a six-element date vector.

The elements are year, month, day, hour, minute and second, the last of which keeps its fractional part. isdst is true when daylight saving time is in force in the local time zone. The vector can be passed straight to datenum or etime.