Javascript Epoch Time In Days
问题 I need the epoch time in days. I've seen posts on how to translate it to date but none in days. I'm pretty bad with epoch time...how could I get this? 回答1: I need the epoch time in days I'll interpret that you want the number of days since the epoch. The epoch itself is day zero (or the start of day 1, however you want to view it). At the heart of a javascript Date object is a number of milliseconds since 1970-01-01T00:00:00Z. So to get the number of days from then to now you simply get the