Timestamp to human readable format

前端 未结 5 1626
面向向阳花
面向向阳花 2020-12-04 10:43

Well I have a strange problem while convert from unix timestamp to human representation using javascript

Here is timestamp

1301090400
5条回答
  •  醉酒成梦
    2020-12-04 11:02

    use Date.prototype.toLocaleTimeString() as documented here

    please note the locale example en-US in the url.

提交回复
热议问题