Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

如图所示,调用接口获取了一组json格式的数据,其中creationTimestamp表示的是时间,请问前端如何将这一大段数据转换成2020-09-23 10:25:21这种dataTime格式的数据呢
image.png

            "creationTimestamp": {
                "iMillis": 1603337531000,
                "iChronology": {
                    "iBase": {
                        "iBase": {
                            "iBase": {
                                "iMinDaysInFirstWeek": 4
                            }
                        },
                        "iParam": {
                            "iZone": {
                                "iTransitions": [
                                    -9223372036854775808,
                                    -2177481943000,
                                    -933667200000,
                                    -922093200000,
                                    -908870400000,
                                    -888829200000,
                                    -881049600000,
                                    -767869200000,
                                    -745833600000,
                                    -733827600000,
                                    -716889600000,
                                    -699613200000,
                                    -683884800000,
                                    -670669200000,
                                    -652348800000,
                                    -650019600000,
                                    515527200000,
                                    527014800000,
                                    545162400000,
                                    558464400000,
                                    577216800000,
                                    589914000000,
                                    608666400000,
                                    621968400000,
                                    640116000000,
                                    653418000000,
                                    671565600000,
                                    684867600000
                                ],
                                "iWallOffsets": [
                                    29143000,
                                    28800000,
                                    32400000,
                                    28800000,
                                    32400000,
                                    28800000,
                                    32400000,
                                    28800000,
                                    32400000,
                                    28800000,
                                    32400000,
                                    28800000,
                                    32400000,
                                    28800000,
                                    32400000,
                                    28800000,
                                    32400000,
                                    28800000,
                                    32400000,
                                    28800000,
                                    32400000,
                                    28800000,
                                    32400000,
                                    28800000,
                                    32400000,
                                    28800000,
                                    32400000,
                                    28800000
                                ],
                                "iStandardOffsets": [
                                    29143000,
                                    28800000,
                                    28800000,
                                    28800000,
                                    28800000,
                                    28800000,
                                    28800000,
                                    28800000,
                                    28800000,
                                    28800000,
                                    28800000,
                                    28800000,
                                    28800000,
                                    28800000,
                                    28800000,
                                    28800000,
                                    28800000,
                                    28800000,
                                    28800000,
                                    28800000,
                                    28800000,
                                    28800000,
                                    28800000,
                                    28800000,
                                    28800000,
                                    28800000,
                                    28800000,
                                    28800000
                                ],
                                "iNameKeys": [
                                    "LMT",
                                    "CST",
                                    "CDT",
                                    "CST",
                                    "CDT",
                                    "CST",
                                    "CDT",
                                    "CST",
                                    "CDT",
                                    "CST",
                                    "CDT",
                                    "CST",
                                    "CDT",
                                    "CST",
                                    "CDT",
                                    "CST",
                                    "CDT",
                                    "CST",
                                    "CDT",
                                    "CST",
                                    "CDT",
                                    "CST",
                                    "CDT",
                                    "CST",
                                    "CDT",
                                    "CST",
                                    "CDT",
                                    "CST"
                                ],
                                "iID": "Asia/Shanghai"
                            },
                            "iID": "Asia/Shanghai"
                        }
                    }
                }
            },

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
1.5k views
Welcome To Ask or Share your Answers For Others

1 Answer

等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...