bugCybernetics Oriented Programming - Bugs: bug #50444, DateTime output is not correct

 
 

bug #50444: DateTime output is not correct

Submitted by:  Enrico Gallus <susanoo>
Submitted on:  Fri 03 Mar 2017 06:28:07 AM UTC  
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Postponed
Privacy:  Public Assigned to:  Enrico Gallus <susanoo>
Open/Closed:  Open Release:  0.18

Add a New Comment (Rich Markup)
   

You are not logged in

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

 

Fri 03 Mar 2017 01:56:25 PM UTC, comment #1: 

This is on my todo list.

Datetime is the most complex issue I have come across. Absolutely underestimated by everyone. Time scale, calendars, special dates, astronomy etc.

I have implemented the basics, but the issue needs greater reflexion to be flexible and work universally.

Currently, there are things with higher priority.

Christian Heller <christian>
Project Administrator
Fri 03 Mar 2017 06:28:07 AM UTC, original submission:  

While adjusting the api-documentation i realised that the date time output is not correct.
The following definition was done in the cybol-file of the datetime-example:

    <!-- Tuesday, 5th November 2013, 23:28:30 UT corresponds to JD 2456602.47813 -->
    <node name="ddmmyyyy" channel="inline" format="datetime/ddmmyyyy" model="05112013"/>

    <!-- Thursday, 6th April 2000 UT corresponds to JD 2451641 -->
    <node name="ddmmyyyy" channel="inline" format="datetime/ddmmyyyy" model="06042000"/>

    <!-- Saturday, 1st January 2000 UT corresponds to JD 2451545 -->
    <node name="ddmmyyyy" channel="inline" format="datetime/ddmmyyyy" model="01012000"/>

    <!-- Sunday, 31st December 1600 UT corresponds to JD 2305813 -->
    <node name="ddmmyyyy" channel="inline" format="datetime/ddmmyyyy" model="31121600"/>

    <!-- NON-leap year 2013. -->
    <node name="ddmmyyyy" channel="inline" format="datetime/ddmmyyyy" model="06012013"/>
    <node name="ddmmyyyy" channel="inline" format="datetime/ddmmyyyy" model="06022013"/>
    <node name="ddmmyyyy" channel="inline" format="datetime/ddmmyyyy" model="06032013"/>
    <node name="ddmmyyyy" channel="inline" format="datetime/ddmmyyyy" model="06042013"/>
    <node name="ddmmyyyy" channel="inline" format="datetime/ddmmyyyy" model="06052013"/>
    <node name="ddmmyyyy" channel="inline" format="datetime/ddmmyyyy" model="06062013"/>
    <node name="ddmmyyyy" channel="inline" format="datetime/ddmmyyyy" model="06072013"/>
    <node name="ddmmyyyy" channel="inline" format="datetime/ddmmyyyy" model="06082013"/>
    <node name="ddmmyyyy" channel="inline" format="datetime/ddmmyyyy" model="06092013"/>
    <node name="ddmmyyyy" channel="inline" format="datetime/ddmmyyyy" model="06102013"/>
    <node name="ddmmyyyy" channel="inline" format="datetime/ddmmyyyy" model="06112013"/>
    <node name="ddmmyyyy" channel="inline" format="datetime/ddmmyyyy" model="06122013"/>

    <!-- Leap year 2012. -->
    <node name="ddmmyyyy" channel="inline" format="datetime/ddmmyyyy" model="06012012"/>
    <node name="ddmmyyyy" channel="inline" format="datetime/ddmmyyyy" model="06022012"/>
    <node name="ddmmyyyy" channel="inline" format="datetime/ddmmyyyy" model="06032012"/>
    <node name="ddmmyyyy" channel="inline" format="datetime/ddmmyyyy" model="06042012"/>
    <node name="ddmmyyyy" channel="inline" format="datetime/ddmmyyyy" model="06052012"/>
    <node name="ddmmyyyy" channel="inline" format="datetime/ddmmyyyy" model="06062012"/>
    <node name="ddmmyyyy" channel="inline" format="datetime/ddmmyyyy" model="06072012"/>
    <node name="ddmmyyyy" channel="inline" format="datetime/ddmmyyyy" model="06082012"/>
    <node name="ddmmyyyy" channel="inline" format="datetime/ddmmyyyy" model="06092012"/>
    <node name="ddmmyyyy" channel="inline" format="datetime/ddmmyyyy" model="06102012"/>
    <node name="ddmmyyyy" channel="inline" format="datetime/ddmmyyyy" model="06112012"/>
    <node name="ddmmyyyy" channel="inline" format="datetime/ddmmyyyy" model="06122012"/>

The tui output is:
Date:
[selected_node] | element/part |
+-ddmmyyyy | datetime/ddmmyyyy | 65092013
+-ddmmyyyy | datetime/ddmmyyyy | 37032000
+-ddmmyyyy | datetime/ddmmyyyy | 30002000
+-ddmmyyyy | datetime/ddmmyyyy | 61111600
+-ddmmyyyy | datetime/ddmmyyyy | 35002013
+-ddmmyyyy | datetime/ddmmyyyy | 37012013
+-ddmmyyyy | datetime/ddmmyyyy | 34022013
+-ddmmyyyy | datetime/ddmmyyyy | 36032013
+-ddmmyyyy | datetime/ddmmyyyy | 35042013
+-ddmmyyyy | datetime/ddmmyyyy | 36052013
+-ddmmyyyy | datetime/ddmmyyyy | 35062013
+-ddmmyyyy | datetime/ddmmyyyy | 36072013
+-ddmmyyyy | datetime/ddmmyyyy | 36082013
+-ddmmyyyy | datetime/ddmmyyyy | 35092013
+-ddmmyyyy | datetime/ddmmyyyy | 36102013
+-ddmmyyyy | datetime/ddmmyyyy | 66102013
+-ddmmyyyy | datetime/ddmmyyyy | 35002012
+-ddmmyyyy | datetime/ddmmyyyy | 37012012
+-ddmmyyyy | datetime/ddmmyyyy | 35022012
+-ddmmyyyy | datetime/ddmmyyyy | 37032012
+-ddmmyyyy | datetime/ddmmyyyy | 36042012
+-ddmmyyyy | datetime/ddmmyyyy | 37052012
+-ddmmyyyy | datetime/ddmmyyyy | 36062012
+-ddmmyyyy | datetime/ddmmyyyy | 37072012
+-ddmmyyyy | datetime/ddmmyyyy | 37082012
+-ddmmyyyy | datetime/ddmmyyyy | 36092012
+-ddmmyyyy | datetime/ddmmyyyy | 37102012
+-ddmmyyyy | datetime/ddmmyyyy | 36112012

Obviously, the day and month values are not correct, we should investigate this and fix if possible.

Enrico Gallus <susanoo>
Project AdministratorIn charge of this item.

 

(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 christian (Posted a comment)
  • -email is unavailable- added by susanoo (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 logged-in users can vote.

     

     

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-03-03 christian StatusNone => Postponed

    Back to the top


    Powered by Savane 3.5