Matlab convert date string to timestamps using datenum problems

matlab

Solution

Matlab help says:

A serial date number represents the whole and fractional number of days from a fixed, preset date (January 0, 0000).

I reckon your answer is maybe 0.0035 days so to get seconds I guess its

ans*24*60*60

Problem

I am new to Matlab. I am trying to use datenum function to parse date string and convert to timestamps(like in Java, getTime()).Then, I want to find out the difference between two dates in seconds. ``` datenum('2013-02-21T00:39:19Z','yyyy-mm-ddTHH:MM:ss')-datenum('2013-02-21T00:34:19Z','yyyy-mm-ddTHH:MM:ss') ``` If I run the function above, I get 0.0035 which I have no idea what kind of value it is. Can someone help please? Thanks!

Original source