Programming and Data Types |
Dates and Times
MATLAB provides functions for time and date handling. These functions are in a directory called timefun
in the MATLAB Toolbox.
Category |
Function |
Description |
Current date and time |
|
Current date and time as date vector |
|
Current date as date string |
|
|
Current date and time as serial date number |
|
Conversion |
|
Convert to serial date number |
|
Convert to string representation of date |
|
|
Date components |
|
Utility |
|
Calendar |
|
Date formatted tick labels |
|
|
End of month |
|
|
Day of the week |
|
Timing |
|
CPU time in seconds |
|
Elapsed time |
|
|
Stopwatch timer |
String Evaluation | Date Formats |