octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #59979] Unexpected format for output from date


From: Alan
Subject: [Octave-bug-tracker] [bug #59979] Unexpected format for output from datevec
Date: Sat, 30 Jan 2021 13:36:51 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0

URL:
  <https://savannah.gnu.org/bugs/?59979>

                 Summary: Unexpected format for output from datevec
                 Project: GNU Octave
            Submitted by: dekalog
            Submitted on: Sat 30 Jan 2021 06:36:50 PM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: 6.1.0
         Discussion Lock: Any
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Create a datevec series of dates and times, spaced by 20 minutes, with the
minutes column values being exactly 0, 20 and 40 with a given starting and
ending time in datevec format. 

First create a typical 20 minute datenum difference value

datenum_20_min_diff=datenum([2021,1,27,17,0,0])-datenum([2021,1,27,16,40,0]);


Next, create a sequence of datenums, spaced by datenum_20_min_diff, from one
given datevec to another datevec and display output as a datevec, e.g.


datevec((datenum([2021,1,27,22,0,0]):datenum_20_min_diff:datenum([2021,1,28,11,0,0]))')


gives unexpectedly formatted output in stout. After a few lines the minutes
and seconds columns of the datevec output display e.g. 59 and 60 respectively,
instead of the expected 0 and 0. 




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59979>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]