how deal with time stamp with unix seconds?

2 Ansichten (letzte 30 Tage)
huda nawaf
huda nawaf am 26 Mai 2012
hi, I got dataste has time stamp with unix seconds since 1/1/1970 UTC ex. this no. 881250949 is date ,but I do not know which date. are there function in matlab deal with such time stamp?
I visited this link about it , but not get what I need http://www.mathworks.com/matlabcentral/newsreader/view_thread/93932
thanks in advance

Akzeptierte Antwort

James Tursa
James Tursa am 26 Mai 2012
Everything you need is in the link you provided. E.g.,
>> datestr(881250949/86400 + datenum('1/1/1970'))
ans =
04-Dec-1997 15:55:49
This would be UTC, not accounting for leap seconds.
  2 Kommentare
huda nawaf
huda nawaf am 26 Mai 2012
thanks,
now hoe get just 04-Dec-1997?
James Tursa
James Tursa am 26 Mai 2012
datestr(floor(881250949/86400 + datenum('1/1/1970')))

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Dates and Time finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by