flot display the date in flot based on timestamp

后端 未结 4 1109
清歌不尽
清歌不尽 2020-12-09 20:54

Does anyone know how to display the date in flot based on timestamp



        
4条回答
  •  盖世英雄少女心
    2020-12-09 21:13

    I guess all you need to do is to multiply the timestamp (which look like unix timestamps) by 1000.

    Unix timestamp tracks time as a running total of seconds starting from January 1st, 1970. While javascript timestamps measure milliseconds. So just multiply by 1000 and you should be fine

提交回复
热议问题