From: Braden on 2 Jun 2010 13:20 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 2 Jun 2010 14:22 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 2 Jun 2010 14:42 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.
|
Pages: 1 Prev: Freeing up variable memory Next: Neural network trained with bayesian regularization |