From: Braden on
I have a data logger that is inserts a Windows system time stamp in the form of a serial data number on data that is being logged. From some poking around, I see that Matlab's serial data number is the days that have passed since 01-Jan-0000 and the Window's serial data number is the days that have passed since 01-Jan-1601.

Is there a built-in Matlab function that converts the system time stamp to a date string or vector? I have searched high and low and any help would be much appreciated. It seems like a fairly common thing that would be needed and am not going to reinvent the wheel if there is a function.
From: Walter Roberson on
Braden wrote:
> I have a data logger that is inserts a Windows system time stamp in the
> form of a serial data number on data that is being logged. From some
> poking around, I see that Matlab's serial data number is the days that
> have passed since 01-Jan-0000 and the Window's serial data number is the
> days that have passed since 01-Jan-1601.

> Is there a built-in Matlab function that converts the system time stamp
> to a date string or vector?

Add datenum('01-Jan-1601') (584755) to each system entry. datestr() the result
if you wish.
From: Braden on
Walter Roberson <roberson(a)hushmail.com> wrote in message <hu67jf$2g9$3(a)canopus.cc.umanitoba.ca>...
> Braden wrote:
> > I have a data logger that is inserts a Windows system time stamp in the
> > form of a serial data number on data that is being logged. From some
> > poking around, I see that Matlab's serial data number is the days that
> > have passed since 01-Jan-0000 and the Window's serial data number is the
> > days that have passed since 01-Jan-1601.
>
> > Is there a built-in Matlab function that converts the system time stamp
> > to a date string or vector?
>
> Add datenum('01-Jan-1601') (584755) to each system entry. datestr() the result
> if you wish.

Thanks for the reply. I determined that the time stamp is actually a MS serial data number so therefore the days that have passed since 01-Jan-1900. Therefore I can use the x2mdate and datestr functions to convert the serial number to a date string.