Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-14562

[fiware-stackoverflow] Fiware timestamp avoid numeric rounding

    Details

      Description

      Created question in FIWARE Q/A platform on 28-08-2018 at 12:08
      Please, ANSWER this question AT https://stackoverflow.com/questions/52055574/fiware-timestamp-avoid-numeric-rounding

      Question:
      Fiware timestamp avoid numeric rounding

      Description:
      I am trying to save metadata of timestamp type and it automatically rounds, how can I avoid this rounding?

      ex:

      original post:

      {
      "2":{
      "type":"float",
      "value":25.7,
      "metadata":{
      "timestamp":

      { "value":1535437067, "type":"Number" }

      }
      }
      }

      Answer Get:

      "2": {
               "type": "float",
               "value": 25.7,
               "metadata": {
                   "timestamp":

      {                  "type": "Number",                  "value": 1535440000              }

               }
           }

      Round: 1535437067 to 1535440000. How can I leave it unrounded?

      A greeting.

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        3h 1 Backlog Manager 28/Aug/18 6:05 PM
        In Progress In Progress Answered Answered
        3h 1 Backlog Manager 28/Aug/18 9:05 PM
        Answered Answered Closed Closed
        14d 11h 22m 1 Jose Manuel Cantera 12/Sep/18 8:28 AM
        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        jmcantera Jose Manuel Cantera made changes -
        Resolution Done [ 10000 ]
        Status Answered [ 10104 ] Closed [ 6 ]
        fla Fernando Lopez made changes -
        HD-Enabler Orion [ 10875 ]
        Description
        Created question in FIWARE Q/A platform on 28-08-2018 at 12:08
        {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/52055574/fiware-timestamp-avoid-numeric-rounding


        +Question:+
        Fiware timestamp avoid numeric rounding

        +Description:+
        I am trying to save metadata of timestamp type and it automatically rounds, how can I avoid this rounding?

        ex:

        original post:

        {
           "2":{
              "type":"float",
              "value":25.7,
              "metadata":{
                 "timestamp":{
                    "value":1535437067,
                    "type":"Number"
                 }
              }
           }
        }


        Answer Get:

        "2": {
                 "type": "float",
                 "value": 25.7,
                 "metadata": {
                     "timestamp": {
                         "type": "Number",
                         "value": 1535440000
                     }
                 }
             }


        Round: 1535437067 to 1535440000. How can I leave it unrounded?

        A greeting.
        Created question in FIWARE Q/A platform on 28-08-2018 at 12:08
        {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/52055574/fiware-timestamp-avoid-numeric-rounding


        +Question:+
        Fiware timestamp avoid numeric rounding

        +Description:+
        I am trying to save metadata of timestamp type and it automatically rounds, how can I avoid this rounding?

        ex:

        original post:

        {
           "2":{
              "type":"float",
              "value":25.7,
              "metadata":{
                 "timestamp":{
                    "value":1535437067,
                    "type":"Number"
                 }
              }
           }
        }


        Answer Get:

        "2": {
                 "type": "float",
                 "value": 25.7,
                 "metadata": {
                     "timestamp": {
                         "type": "Number",
                         "value": 1535440000
                     }
                 }
             }


        Round: 1535437067 to 1535440000. How can I leave it unrounded?

        A greeting.
        Hide
        backlogmanager Backlog Manager added a comment -

        2018-08-28 21:05|UPDATED status: transition Answered| # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2018-08-28 21:05|UPDATED status: transition Answered| # answers= 1, accepted answer= False
        backlogmanager Backlog Manager made changes -
        Status In Progress [ 3 ] Answered [ 10104 ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2018-08-28 18:05|UPDATED status: transition Answer| # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2018-08-28 18:05|UPDATED status: transition Answer| # answers= 1, accepted answer= False
        backlogmanager Backlog Manager made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        veronika Veronika Vlnkova made changes -
        Assignee Jose Manuel Cantera [ jmcantera ]
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2018-08-28 15:05|CREATED monitor | # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2018-08-28 15:05|CREATED monitor | # answers= 1, accepted answer= False
        backlogmanager Backlog Manager created issue -

          People

          • Assignee:
            jmcantera Jose Manuel Cantera
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: