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.
383 Downloads
Updated 13 Aug 2012

View License

This is the file:

num = datenum([1970, 1, 1, 0, 0, sec]);

No mex/Java/other silliness required.

Cite As

Dan (2024). Seconds UTC to Matlab Datenum (https://www.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 Linux
Categories
Find more on Dates and Time in Help Center and MATLAB Answers
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0