File Exchange

image thumbnail


version (1.05 KB) by jasongrig
Converts any Date to (total number of) seconds

1 Download

Updated 21 Aug 2017

View License

Converts any Date to (total number of) seconds.
Much faster than the command "second".
Takes into account leap years.
Accurate day count per month.
Year must be > 1.

Cite As

jasongrig (2021). DateToSec (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (0)

MATLAB Release Compatibility
Created with R2016b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!