How to use Date in Javascript for prehistoric dates?

前端 未结 4 1475
盖世英雄少女心
盖世英雄少女心 2021-01-30 12:42

I’m working on a project where the JavaScript Date isn\'t big enough.

I want to place multiple events on the same time axis, some of them have month and day and some don

4条回答
  •  一生所求
    2021-01-30 13:12

    If you only need to represent years, a simple Number might be enough : they can represent up to +/- 9007199254740991.

    You could wrap it into a custom class to provide it with date functions.

提交回复
热议问题