Matlab: Convert Unusual Date Format to Readable Date

  • Context: MATLAB 
  • Thread starter Thread starter confused_engineer
  • Start date Start date
  • Tags Tags
    Format
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 2K views
confused_engineer
Messages
34
Reaction score
1
Hello everybody.
Recently I have been given a series of archives which contain a series of measurements and the dates in which they were measured. The problem is that this format is the time which has happened in hours since 1900-01-01 at midnight. Can someone tell me how can I find out how to find the proper date using Matlab.

The times are
1022676
1022682
1022688
1022694
1022700
1022706
1022712
1022718
1022724

Thanks for the help
 
on Phys.org
You need to add those hours to the origin date, something like
Matlab:
time = double(hours)/24 + datenum('1900-01-01 00:00:00');