bugGNU Octave - Bugs: bug #47032, missing matlab date time functions


bug #47032: missing matlab date time functions

Submitted by:  John Donoghue <lostbard>
Submitted on:  Sun 31 Jan 2016 02:29:32 PM UTC  
Category:  Octave Function Severity:  2 - Minor
Priority:  3 - Low Item Group:  Feature Request
Status:  Postponed Assigned to:  None
Originator Name:  JohnD Open/Closed:  Open
Release:  dev Operating System:  Any

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Sat 27 Feb 2016 11:04:20 AM UTC, comment #3:

OK. It turns out to be a mix in R2015b. The following functions rely on datetime, or other types that I believe are currently unsupported by Octave:

yyyymmdd (input is type "datetime")
timezones (output is type "table")
years [and I assume days,hours,minutes,seconds,milliseconds] (input or output is type "duration")
calyears [and I assumecaldays,calmonths,calweeks,calquarters] (input or output is type "calendarDuration")
posixtime (input is type "datetime")
juliantime (input is type "datetime")
exceltime (input is type "datetime")

Lachlan Andrew <lachlan>
Sat 27 Feb 2016 02:21:21 AM UTC, comment #2:

datetime looks like it uses the datetime data type.

Most of the others are just durations, where 1.0 is oe day, 365.2425 is a year etc.

John Donoghue <lostbard>
Project Member
Sat 27 Feb 2016 01:39:09 AM UTC, comment #1:

John, I believe that these are not functions on existing data types, but only ones that relate to Matlab's new "datetime" data type, which Octave does not support. Is that correct?

Lachlan Andrew <lachlan>
Sun 31 Jan 2016 02:29:32 PM UTC, original submission:

Just to document it - some missing date/time functions from matlab [1] - some are implemented via other functions:

datetime (matlab 2014)

timezones (matlab 2015b)

years,days,hours,minutes,seconds,milliseconds, duration (matlab 2014b)

calyears,caldays,calmonths,calweeks, calquarters, calDuration (matlab 2014b)

yyyymmdd (matlab 2014b)

posixtime (matlab 2014b)

juliandate (matlab 2014b)

exceltime (matlab 2014b)

[1] http://www.mathworks.com/help/matlab/create-date-and-time-arrays.html

John Donoghue <lostbard>
Project Member


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by lachlan (Posted a comment)
  • -email is unavailable- added by lostbard (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-02-27 lachlan Priority5 - Normal => 3 - Low
        StatusNone => Postponed

    Back to the top

    Powered by Savane 3.3