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

        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
        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
        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

          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: