bugGNU Octave - Bugs: bug #47032, missing matlab datetime, duration,...

 
 

bug #47032: missing matlab datetime, duration, calendarDuration, and related functions

Submitted by:  John Donoghue <lostbard>
Submitted on:  Sun 31 Jan 2016 02:29:32 PM UTC  
 
Category:  Octave Function Severity:  1 - Wish
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.

 

Fri 17 Aug 2018 07:02:04 PM UTC, comment #5:

From what I remember, getting the duration object implemented quickly was far easier than working on the datetime and calendarDuration classes.

All functions are original works by me, licensed under GPLv3+ and ready for inclusion in Octave, and all include unit tests.

I'll keep working on this as time allows, and help from other contributors is very welcome. I'd like to have something a bit more complete before it is moved into Octave.

Mike Miller <mtmiller>
Project Administrator
Thu 16 Aug 2018 12:10:14 AM UTC, comment #4:

I have made a start on some of the duration types and functions a couple months ago (May 2018). I will see what state it's in and post a link to a working repository. I'm happy if someone else wants to work on this as well, just wanted to share what I have so far.

Mike Miller <mtmiller>
Project Administrator
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:

datetime
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:
   
   
Comment:
   

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 mtmiller (Posted a comment)
  • -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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-08-17 mtmiller Summarymissing matlab date time functions => missing matlab datetime, duration, calendarDuration, and related functions
    2018-08-16 rik5 Carbon-CopyRemoved 72865 => -
    2018-08-16 rik5 Severity2 - Minor => 1 - Wish
    2016-02-27 lachlan Priority5 - Normal => 3 - Low
        StatusNone => Postponed

    Back to the top


    Powered by Savane 3.3