Clear Filters
Clear Filters

convert a time data into a Epoch/Unix time

14 views (last 30 days)
The time data are saved as DATE and TIME in the two columns of a Excel worksheet. How can I convert them into a Epoch/Unix time by Matlab?
DATE TIME
24-DEC-2016 04:31:04:59

Accepted Answer

Walter Roberson
Walter Roberson on 8 Jan 2017
Edited: Walter Roberson on 7 Dec 2018
posixtime( datetime(strcat(DATE, {' '}, TIME), 'InputFormat', 'dd-MMM-yyyy hh:mm:ss:SS') )

More Answers (1)

Herbert Guzman
Herbert Guzman on 7 Dec 2018
What toolbox do you need for this function?

Categories

Find more on Dates and Time in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!