get utc time to date vector

  • Follow


Hi all,

Does anyone know if MATLAB has any embedded functions that can convert a utc time ( number in seconds from offset at 1/1/1970 ) to a date vector of month day year hours minutes and seconds?  Looks like the hardest part is to split up the months, and days since every month has various numbers of days.

Thank you-
0
Reply Judy 12/7/2009 11:39:02 PM

"Judy " <sauwen.jl@gmail.com> wrote in message <hfk3mm$231$1@fred.mathworks.com>...
> Hi all,
> 
> Does anyone know if MATLAB has any embedded functions that can convert a utc time ( number in seconds from offset at 1/1/1970 ) to a date vector of month day year hours minutes and seconds?  Looks like the hardest part is to split up the months, and days since every month has various numbers of days.
> 
> Thank you-

Nothing built in.  You can search on the file exchange.  One link below:

http://www.mathworks.com/matlabcentral/fileexchange/22223-world-time-zones

Regards,
Georgios
0
Reply Georgios 12/8/2009 12:36:04 AM


"Judy " <sauwen.jl@gmail.com> wrote in message <hfk3mm$231$1@fred.mathworks.com>...
> Hi all,
> 
> Does anyone know if MATLAB has any embedded functions that can convert a utc time ( number in seconds from offset at 1/1/1970 ) to a date vector of month day year hours minutes and seconds?  Looks like the hardest part is to split up the months, and days since every month has various numbers of days.
> 
> Thank you-

datevec(datenum(1970,1,1)+utcsec/86400)

James Tursa
0
Reply James 12/8/2009 1:42:02 AM

2 Replies
792 Views

(page loaded in 0.027 seconds)

Similiar Articles:













7/20/2012 6:03:39 PM


Reply: