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 FunctionSeverity: 2 - Minor
Priority: 3 - LowItem Group: Feature Request
Status: PostponedAssigned to: None
Originator Name: JohnDOpen/Closed: Open
Release: devOperating 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>
Project Member
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>
Project Member
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 File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


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

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

    Only project members can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 27 Feb 2016 01:39:09 AM UTClachlanPriority5 - Normal=>3 - Low

    Back to the top

    Powered by Savane 3.1-cleanup1