How can i convert tis timestamp has a complete date and time like 'yyyy-mm-dd HH:MM:SS.ssssss'
My chart looks like:
i want to looks like:
can someone help me?
My code:
[
{
"id": "e0c3fff1129abd5f",
"type": "function",
"z": "8eee6e26.470a3",
"g": "4c9df94c6ddc383c",
"name": "function 55",
"func": "var data = msg.payload;\nvar x = [];\nvar y = [];\nfor (var i = 0; i < data.length; i++) {\n x.push(data[i].x);\n y.push(data[i].y);\n}\nmsg.payload = {\n x: x,\n y: y,\n type: 'scatter',\n mode: 'lines+markers'\n};\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 990,
"y": 1080,
"wires": [
[
"b4ee668f5b4920f0",
"4204cc51074da9ae",
"cde024167bc4f730"
]
]
},
{
"id": "86ee48f6645815a6",
"type": "inject",
"z": "8eee6e26.470a3",
"g": "4c9df94c6ddc383c",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "[{\"x\":1676236262,\"y\":17.3},{\"x\":1676236263,\"y\":17.4},{\"x\":1676236297,\"y\":17.3},{\"x\":1676236298,\"y\":17.4},{\"x\":1676236307,\"y\":17.3},{\"x\":1676236308,\"y\":17.4},{\"x\":1676236310,\"y\":17.3},{\"x\":1676236311,\"y\":17.4},{\"x\":1676236314,\"y\":17.3},{\"x\":1676236315,\"y\":17.4},{\"x\":1676236319,\"y\":17.3},{\"x\":1676236320,\"y\":17.4},{\"x\":1676236321,\"y\":17.3},{\"x\":1676236322,\"y\":17.4},{\"x\":1676236324,\"y\":17.3},{\"x\":1676236325,\"y\":17.4},{\"x\":1676236330,\"y\":17.3},{\"x\":1676236331,\"y\":17.4},{\"x\":1676236335,\"y\":17.3},{\"x\":1676236337,\"y\":17.4},{\"x\":1676236338,\"y\":17.3},{\"x\":1676236339,\"y\":17.4},{\"x\":1676236340,\"y\":17.3},{\"x\":1676236341,\"y\":17.4},{\"x\":1676236342,\"y\":17.3},{\"x\":1676236343,\"y\":17.4},{\"x\":1676236349,\"y\":17.3},{\"x\":1676236350,\"y\":17.4},{\"x\":1676236351,\"y\":17.3},{\"x\":1676236354,\"y\":17.4},{\"x\":1676236355,\"y\":17.3},{\"x\":1676236356,\"y\":17.4},{\"x\":1676236361,\"y\":17.3},{\"x\":1676236362,\"y\":17.4},{\"x\":1676236363,\"y\":17.3},{\"x\":1676236368,\"y\":17.4},{\"x\":1676236380,\"y\":17.3},{\"x\":1676236381,\"y\":17.4},{\"x\":1676236384,\"y\":17.3},{\"x\":1676236385,\"y\":17.4},{\"x\":1676236399,\"y\":17.3},{\"x\":1676236401,\"y\":17.4},{\"x\":1676236402,\"y\":17.3},{\"x\":1676236403,\"y\":17.4},{\"x\":1676236653,\"y\":17.3},{\"x\":1676236654,\"y\":17.4},{\"x\":1676236655,\"y\":17.3},{\"x\":1676236657,\"y\":17.4},{\"x\":1676236669,\"y\":17.3},{\"x\":1676236670,\"y\":17.4},{\"x\":1676236671,\"y\":17.3},{\"x\":1676236673,\"y\":17.4},{\"x\":1676236674,\"y\":17.3},{\"x\":1676236681,\"y\":17.4},{\"x\":1676236683,\"y\":17.3},{\"x\":1676236684,\"y\":17.4},{\"x\":1676236686,\"y\":17.3},{\"x\":1676236687,\"y\":17.4},{\"x\":1676236688,\"y\":17.3},{\"x\":1676236691,\"y\":17.4},{\"x\":1676236692,\"y\":17.3},{\"x\":1676236695,\"y\":17.4},{\"x\":1676236696,\"y\":17.3},{\"x\":1676236697,\"y\":17.4},{\"x\":1676236698,\"y\":17.3},{\"x\":1676236706,\"y\":17.4},{\"x\":1676236707,\"y\":17.3},{\"x\":1676236708,\"y\":17.4},{\"x\":1676236709,\"y\":17.3},{\"x\":1676236711,\"y\":17.4},{\"x\":1676236713,\"y\":17.3},{\"x\":1676236724,\"y\":17.4},{\"x\":1676236725,\"y\":17.3},{\"x\":1676236726,\"y\":17.4},{\"x\":1676236727,\"y\":17.3},{\"x\":1676236732,\"y\":17.4},{\"x\":1676236733,\"y\":17.3},{\"x\":1676236737,\"y\":17.4},{\"x\":1676236738,\"y\":17.3},{\"x\":1676236740,\"y\":17.4},{\"x\":1676236742,\"y\":17.3},{\"x\":1676236744,\"y\":17.4},{\"x\":1676236745,\"y\":17.3},{\"x\":1676236747,\"y\":17.4},{\"x\":1676236748,\"y\":17.3},{\"x\":1676236753,\"y\":17.4},{\"x\":1676236755,\"y\":17.3},{\"x\":1676236760,\"y\":17.4},{\"x\":1676236761,\"y\":17.3},{\"x\":1676236762,\"y\":17.4},{\"x\":1676236763,\"y\":17.3},{\"x\":1676236767,\"y\":17.4},{\"x\":1676236772,\"y\":17.3},{\"x\":1676236776,\"y\":17.4},{\"x\":1676236781,\"y\":17.3},{\"x\":1676236782,\"y\":17.4},{\"x\":1676236783,\"y\":17.3},{\"x\":1676236784,\"y\":17.4},{\"x\":1676236785,\"y\":17.3},{\"x\":1676236786,\"y\":17.4},{\"x\":1676236787,\"y\":17.3},{\"x\":1676236789,\"y\":17.4},{\"x\":1676236791,\"y\":17.3},{\"x\":1676236792,\"y\":17.4},{\"x\":1676236794,\"y\":17.3},{\"x\":1676236796,\"y\":17.4},{\"x\":1676236798,\"y\":17.3},{\"x\":1676236800,\"y\":17.4},{\"x\":1676236801,\"y\":17.3},{\"x\":1676236802,\"y\":17.4},{\"x\":1676236804,\"y\":17.3},{\"x\":1676236806,\"y\":17.4},{\"x\":1676236808,\"y\":17.3},{\"x\":1676236809,\"y\":17.4},{\"x\":1676236812,\"y\":17.3},{\"x\":1676236813,\"y\":17.4},{\"x\":1676236814,\"y\":17.3},{\"x\":1676236815,\"y\":17.4},{\"x\":1676236826,\"y\":17.3},{\"x\":1676236829,\"y\":17.4},{\"x\":1676236832,\"y\":17.3},{\"x\":1676236834,\"y\":17.4},{\"x\":1676236843,\"y\":17.3},{\"x\":1676236844,\"y\":17.4},{\"x\":1676237102,\"y\":17.5},{\"x\":1676237103,\"y\":17.4},{\"x\":1676237115,\"y\":17.5},{\"x\":1676237117,\"y\":17.4},{\"x\":1676237130,\"y\":17.5},{\"x\":1676237131,\"y\":17.4},{\"x\":1676237138,\"y\":17.5},{\"x\":1676237139,\"y\":17.4},{\"x\":1676237140,\"y\":17.5},{\"x\":1676237142,\"y\":17.4},{\"x\":1676237152,\"y\":17.5},{\"x\":1676237153,\"y\":17.4},{\"x\":1676237154,\"y\":17.5},{\"x\":1676237155,\"y\":17.4},{\"x\":1676237159,\"y\":17.5},{\"x\":1676237160,\"y\":17.4},{\"x\":1676237167,\"y\":17.5},{\"x\":1676237168,\"y\":17.4},{\"x\":1676237172,\"y\":17.5},{\"x\":1676237174,\"y\":17.4},{\"x\":1676237176,\"y\":17.5},{\"x\":1676237177,\"y\":17.4},{\"x\":1676237187,\"y\":17.5},{\"x\":1676237188,\"y\":17.4},{\"x\":1676237196,\"y\":17.5},{\"x\":1676237197,\"y\":17.4},{\"x\":1676237202,\"y\":17.5},{\"x\":1676237204,\"y\":17.4},{\"x\":1676237206,\"y\":17.5},{\"x\":1676237208,\"y\":17.4},{\"x\":1676237216,\"y\":17.5},{\"x\":1676237217,\"y\":17.4},{\"x\":1676237218,\"y\":17.5},{\"x\":1676237219,\"y\":17.4},{\"x\":1676237221,\"y\":17.5},{\"x\":1676237222,\"y\":17.4},{\"x\":1676237240,\"y\":17.5},{\"x\":1676237242,\"y\":17.4},{\"x\":1676237243,\"y\":17.5},{\"x\":1676237244,\"y\":17.4},{\"x\":1676237246,\"y\":17.5},{\"x\":1676237249,\"y\":17.4},{\"x\":1676237250,\"y\":17.5},{\"x\":1676237251,\"y\":17.4},{\"x\":1676237253,\"y\":17.5},{\"x\":1676237257,\"y\":17.4},{\"x\":1676237260,\"y\":17.5},{\"x\":1676237264,\"y\":17.4},{\"x\":1676237265,\"y\":17.5},{\"x\":1676239168,\"y\":16.8},{\"x\":1676239170,\"y\":16.9},{\"x\":1676239173,\"y\":16.8},{\"x\":1676239175,\"y\":16.9},{\"x\":1676239178,\"y\":16.8},{\"x\":1676239182,\"y\":16.9},{\"x\":1676239183,\"y\":16.8},{\"x\":1676239196,\"y\":16.7},{\"x\":1676239197,\"y\":16.8},{\"x\":1676239202,\"y\":16.7},{\"x\":1676239203,\"y\":16.8},{\"x\":1676239206,\"y\":16.7},{\"x\":1676239210,\"y\":16.8},{\"x\":1676239211,\"y\":16.7},{\"x\":1676239216,\"y\":16.8},{\"x\":1676239217,\"y\":16.7},{\"x\":1676239246,\"y\":16.6},{\"x\":1676239246,\"y\":16.7},{\"x\":1676239247,\"y\":16.6},{\"x\":1676239289,\"y\":16.5},{\"x\":1676239290,\"y\":16.6},{\"x\":1676239291,\"y\":16.5},{\"x\":1676239293,\"y\":16.6},{\"x\":1676239297,\"y\":16.5},{\"x\":1676239298,\"y\":16.6},{\"x\":1676239299,\"y\":16.5},{\"x\":1676239304,\"y\":16.6},{\"x\":1676239305,\"y\":16.5},{\"x\":1676239306,\"y\":16.6},{\"x\":1676239307,\"y\":16.5},{\"x\":1676239310,\"y\":16.6},{\"x\":1676239311,\"y\":16.5},{\"x\":1676239350,\"y\":16.4},{\"x\":1676239351,\"y\":16.5},{\"x\":1676239368,\"y\":16.4},{\"x\":1676239369,\"y\":16.5},{\"x\":1676239375,\"y\":16.4},{\"x\":1676239376,\"y\":16.5},{\"x\":1676239648,\"y\":16.6},{\"x\":1676239649,\"y\":16.5},{\"x\":1676239656,\"y\":16.6},{\"x\":1676239658,\"y\":16.5},{\"x\":1676239666,\"y\":16.6},{\"x\":1676239667,\"y\":16.5},{\"x\":1676239673,\"y\":16.6},{\"x\":1676239674,\"y\":16.5},{\"x\":1676239680,\"y\":16.6},{\"x\":1676239682,\"y\":16.5},{\"x\":1676239683,\"y\":16.6},{\"x\":1676239685,\"y\":16.5},{\"x\":1676239687,\"y\":16.6},{\"x\":1676239688,\"y\":16.5},{\"x\":1676239690,\"y\":16.6},{\"x\":1676239691,\"y\":16.5},{\"x\":1676239693,\"y\":16.6},{\"x\":1676239695,\"y\":16.5},{\"x\":1676239699,\"y\":16.6},{\"x\":1676239700,\"y\":16.5},{\"x\":1676239709,\"y\":16.6},{\"x\":1676239711,\"y\":16.5},{\"x\":1676239738,\"y\":16.6},{\"x\":1676239739,\"y\":16.5},{\"x\":1676239747,\"y\":16.6},{\"x\":1676239748,\"y\":16.5},{\"x\":1676240006,\"y\":16.6},{\"x\":1676240007,\"y\":16.5},{\"x\":1676240025,\"y\":16.6},{\"x\":1676240028,\"y\":16.5},{\"x\":1676240029,\"y\":16.6},{\"x\":1676240030,\"y\":16.5},{\"x\":1676240037,\"y\":16.6},{\"x\":1676240039,\"y\":16.5},{\"x\":1676240042,\"y\":16.6},{\"x\":1676240046,\"y\":16.5},{\"x\":1676240047,\"y\":16.6},{\"x\":1676240053,\"y\":16.5},{\"x\":1676240054,\"y\":16.6},{\"x\":1676240061,\"y\":16.5},{\"x\":1676240062,\"y\":16.6},{\"x\":1676240066,\"y\":16.5},{\"x\":1676240067,\"y\":16.6},{\"x\":1676240214,\"y\":16.7},{\"x\":1676240215,\"y\":16.6},{\"x\":1676240221,\"y\":16.7},{\"x\":1676240222,\"y\":16.6},{\"x\":1676240232,\"y\":16.7},{\"x\":1676240233,\"y\":16.6},{\"x\":1676240237,\"y\":16.7},{\"x\":1676240239,\"y\":16.6},{\"x\":1676240242,\"y\":16.7},{\"x\":1676240243,\"y\":16.6},{\"x\":1676240245,\"y\":16.7},{\"x\":1676240246,\"y\":16.6},{\"x\":1676240248,\"y\":16.7},{\"x\":1676240255,\"y\":16.6},{\"x\":1676240256,\"y\":16.7},{\"x\":1676240258,\"y\":16.6},{\"x\":1676240259,\"y\":16.7},{\"x\":1676240260,\"y\":16.6},{\"x\":1676240266,\"y\":16.7},{\"x\":1676240267,\"y\":16.6},{\"x\":1676240270,\"y\":16.7},{\"x\":1676240271,\"y\":16.6},{\"x\":1676240595,\"y\":16.7},{\"x\":1676240596,\"y\":16.6},{\"x\":1676240600,\"y\":16.7},{\"x\":1676240601,\"y\":16.6},{\"x\":1676240615,\"y\":16.7},{\"x\":1676240619,\"y\":16.6},{\"x\":1676240620,\"y\":16.7},{\"x\":1676240622,\"y\":16.6},{\"x\":1676240623,\"y\":16.7},{\"x\":1676240624,\"y\":16.6},{\"x\":1676240634,\"y\":16.7},{\"x\":1676240636,\"y\":16.6},{\"x\":1676240638,\"y\":16.7},{\"x\":1676240639,\"y\":16.6},{\"x\":1676240643,\"y\":16.7},{\"x\":1676240645,\"y\":16.6},{\"x\":1676240646,\"y\":16.7},{\"x\":1676240648,\"y\":16.6},{\"x\":1676240651,\"y\":16.7},{\"x\":1676240653,\"y\":16.6},{\"x\":1676240654,\"y\":16.7},{\"x\":1676240656,\"y\":16.6},{\"x\":1676240661,\"y\":16.7},{\"x\":1676240662,\"y\":16.6},{\"x\":1676240668,\"y\":16.7},{\"x\":1676240669,\"y\":16.6},{\"x\":1676240675,\"y\":16.7},{\"x\":1676240676,\"y\":16.6},{\"x\":1676240798,\"y\":16.5},{\"x\":1676240799,\"y\":16.6},{\"x\":1676240884,\"y\":16.5},{\"x\":1676240886,\"y\":16.6},{\"x\":1676240893,\"y\":16.5},{\"x\":1676240894,\"y\":16.6},{\"x\":1676240898,\"y\":16.5},{\"x\":1676240899,\"y\":16.6},{\"x\":1676240903,\"y\":16.5},{\"x\":1676240904,\"y\":16.6},{\"x\":1676240905,\"y\":16.5},{\"x\":1676240907,\"y\":16.6},{\"x\":1676240911,\"y\":16.5},{\"x\":1676240914,\"y\":16.6},{\"x\":1676240917,\"y\":16.5},{\"x\":1676240918,\"y\":16.6},{\"x\":1676240924,\"y\":16.5},{\"x\":1676240925,\"y\":16.6},{\"x\":1676240932,\"y\":16.5},{\"x\":1676240933,\"y\":16.6},{\"x\":1676240936,\"y\":16.5},{\"x\":1676240940,\"y\":16.6},{\"x\":1676240942,\"y\":16.5},{\"x\":1676240944,\"y\":16.6},{\"x\":1676240945,\"y\":16.5},{\"x\":1676240951,\"y\":16.6},{\"x\":1676240952,\"y\":16.5},{\"x\":1676241255,\"y\":16.6},{\"x\":1676241256,\"y\":16.5},{\"x\":1676241276,\"y\":16.6},{\"x\":1676241277,\"y\":16.5},{\"x\":1676241283,\"y\":16.6},{\"x\":1676241284,\"y\":16.5},{\"x\":1676241285,\"y\":16.6},{\"x\":1676241289,\"y\":16.5},{\"x\":1676241290,\"y\":16.6},{\"x\":1676241291,\"y\":16.5},{\"x\":1676241292,\"y\":16.6},{\"x\":1676241297,\"y\":16.5},{\"x\":1676241300,\"y\":16.6},{\"x\":1676241301,\"y\":16.5},{\"x\":1676241306,\"y\":16.6},{\"x\":1676241308,\"y\":16.5},{\"x\":1676241310,\"y\":16.6},{\"x\":1676241311,\"y\":16.5},{\"x\":1676241313,\"y\":16.6},{\"x\":1676241314,\"y\":16.5},{\"x\":1676241315,\"y\":16.6},{\"x\":1676241316,\"y\":16.5},{\"x\":1676241317,\"y\":16.6},{\"x\":1676241318,\"y\":16.5},{\"x\":1676241319,\"y\":16.6},{\"x\":1676241327,\"y\":16.5},{\"x\":1676241330,\"y\":16.6},{\"x\":1676241332,\"y\":16.5},{\"x\":1676241333,\"y\":16.6},{\"x\":1676241382,\"y\":16.5},{\"x\":1676241384,\"y\":16.6},{\"x\":1676241416,\"y\":16.5},{\"x\":1676241417,\"y\":16.6},{\"x\":1676241423,\"y\":16.5},{\"x\":1676241424,\"y\":16.6},{\"x\":1676241451,\"y\":16.5},{\"x\":1676241453,\"y\":16.6},{\"x\":1676241457,\"y\":16.5},{\"x\":1676241458,\"y\":16.6},{\"x\":1676241465,\"y\":16.5},{\"x\":1676241466,\"y\":16.6},{\"x\":1676241689,\"y\":16.7},{\"x\":1676241690,\"y\":16.6},{\"x\":1676241984,\"y\":16.5},{\"x\":1676241985,\"y\":16.6},{\"x\":1676241988,\"y\":16.5},{\"x\":1676241991,\"y\":16.6},{\"x\":1676241993,\"y\":16.5},{\"x\":1676241996,\"y\":16.6},{\"x\":1676241998,\"y\":16.5},{\"x\":1676242000,\"y\":16.6},{\"x\":1676242001,\"y\":16.5},{\"x\":1676242010,\"y\":16.6},{\"x\":1676242012,\"y\":16.5},{\"x\":1676242037,\"y\":16.6},{\"x\":1676242038,\"y\":16.5},{\"x\":1676242093,\"y\":16.6},{\"x\":1676242094,\"y\":16.5},{\"x\":1676242101,\"y\":16.6},{\"x\":1676242102,\"y\":16.5},{\"x\":1676242105,\"y\":16.6},{\"x\":1676242107,\"y\":16.5},{\"x\":1676242114,\"y\":16.6},{\"x\":1676242115,\"y\":16.5},{\"x\":1676242122,\"y\":16.6},{\"x\":1676242124,\"y\":16.5},{\"x\":1676242125,\"y\":16.6},{\"x\":1676242126,\"y\":16.5},{\"x\":1676242130,\"y\":16.6},{\"x\":1676242133,\"y\":16.5},{\"x\":1676242134,\"y\":16.6},{\"x\":1676242136,\"y\":16.5},{\"x\":1676242140,\"y\":16.6},{\"x\":1676242142,\"y\":16.5},{\"x\":1676242144,\"y\":16.6},{\"x\":1676242147,\"y\":16.5},{\"x\":1676242149,\"y\":16.6},{\"x\":1676242152,\"y\":16.5},{\"x\":1676242153,\"y\":16.6},{\"x\":1676242161,\"y\":16.5},{\"x\":1676242162,\"y\":16.6},{\"x\":1676242163,\"y\":16.5},{\"x\":1676242165,\"y\":16.6},{\"x\":1676242169,\"y\":16.5},{\"x\":1676242170,\"y\":16.6},{\"x\":1676242178,\"y\":16.5},{\"x\":1676242179,\"y\":16.6},{\"x\":1676242180,\"y\":16.5},{\"x\":1676242181,\"y\":16.6},{\"x\":1676242183,\"y\":16.5}]",
"payloadType": "json",
"x": 830,
"y": 1120,
"wires": [
[
"e0c3fff1129abd5f"
]
]
},
{
"id": "4204cc51074da9ae",
"type": "debug",
"z": "8eee6e26.470a3",
"g": "4c9df94c6ddc383c",
"name": "debug 5",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 1260,
"y": 1020,
"wires": []
}
]
thanks!