Effacer les filtres
Effacer les filtres

convert a time data into a Epoch/Unix time

14 vues (au cours des 30 derniers jours)
Hsinho Huang
Hsinho Huang le 8 Jan 2017
Commenté : Walter Roberson le 7 Déc 2018
The time data are saved as DATE and TIME in the two columns of a Excel worksheet. How can I convert them into a Epoch/Unix time by Matlab?
DATE TIME
24-DEC-2016 04:31:04:59

Réponse acceptée

Walter Roberson
Walter Roberson le 8 Jan 2017
Modifié(e) : Walter Roberson le 7 Déc 2018
posixtime( datetime(strcat(DATE, {' '}, TIME), 'InputFormat', 'dd-MMM-yyyy hh:mm:ss:SS') )

Plus de réponses (1)

Herbert Guzman
Herbert Guzman le 7 Déc 2018
What toolbox do you need for this function?
  1 commentaire
Walter Roberson
Walter Roberson le 7 Déc 2018
r2014b now that I have corrected the function name

Connectez-vous pour commenter.

Catégories

En savoir plus sur Dates and Time dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by