MATLAB Answers

0

Getting 9 digit datenum into a timestamp format of Date and time.

Asked by Ajpaezm on 6 Apr 2019
Latest activity Answered by Walter Roberson
on 6 Apr 2019
I have a number representing a date:
val = 1554579550.00000
I want to convert it to a timestamp (date + time) but can't figure out how, applying datestr(val) returns the following value:
datestr(val) = 29-Mar-6294
What's the proper way of handling these 9 digit number dates?
Thanks in advance!

  0 Comments

Sign in to comment.

Tags

Products


Release

R2018b

1 Answer

Answer by Walter Roberson
on 6 Apr 2019
 Accepted Answer

datetime(val, 'convertfrom', 'posixtime')

  0 Comments

Sign in to comment.