[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
different date/time representations
From: |
Andreas Weber |
Subject: |
different date/time representations |
Date: |
Thu, 26 May 2016 12:17:33 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.8.0 |
Dear all,
Since I'm always baffled because the different representations for
date/time in GNU Octave (serial day number, date vector, time structure
and so on) I made a graphic to help me when dealing with date/time:
http://www.tech-chat.de/images/GNU_Octave_date_time.svg
Am I missing something? Should I add this to the wiki?
And is there a direct way from "seconds since the epoch" to "serial day
number"?
A function like:
tm = localtime (t);
ret = datenum (tm.year + 1900, tm.mon + 1, tm.mday, tm.hour, tm.min,
tm.sec + tm.usec / 1e6)
Thanks, Andy
- different date/time representations,
Andreas Weber <=