Time Commands clock Returns the current date and time. ctime Returns time as a string in local time, for the given time, t, in seconds. datenum Returns the day and time input as a number of days since January 1, 0000. datestr Returns a date as a formatted string. datevec Returns the date vector (year, month, day, hour, minute, seconds) for the given date number or string. day Returns the day of a given date string, s. hour Returns the hours in a given date string, s. minute Returns the minutes in a given date string, s. month Returns the month of a given date string, s. now Returns the number of days from January 1, 0000 and the current time in seconds as a double. quarter Returns the quarter that a given date string, s falls in. second Returns the seconds in a given string, s. sleep Pauses the current execution for n seconds. tic Sets an internal clock. time Returns current time in seconds from the epoch January 1, 1970. toc Calls to toc return the elapsed time since tic was called. weekday Returns the day of the week for the given date. year Returns the year of a given date string, s.