Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
get utc time to date vector

Subject: get utc time to date vector

From: Judy

Date: 7 Dec, 2009 23:39:02

Message: 1 of 3

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-

Subject: get utc time to date vector

From: Georgios

Date: 8 Dec, 2009 00:36:04

Message: 2 of 3

"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

Subject: get utc time to date vector

From: James Tursa

Date: 8 Dec, 2009 01:42:02

Message: 3 of 3

"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

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us