Seconds UTC to Matlab Datenum
Version 1.0.0.0 (1.04 KB) by
Dan
There are a lot of ways to do this on the Internet. This version is 1-line long.
This is the file:
num = datenum([1970, 1, 1, 0, 0, sec]);
No mex/Java/other silliness required.
Cite As
Dan (2026). Seconds UTC to Matlab Datenum (https://uk.mathworks.com/matlabcentral/fileexchange/37805-seconds-utc-to-matlab-datenum), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2012a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Dates and Time in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
