Seconds UTC to Matlab Datenum

There are a lot of ways to do this on the Internet. This version is 1-line long.

You are now following this Submission

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://www.mathworks.com/matlabcentral/fileexchange/37805-seconds-utc-to-matlab-datenum), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0