Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

1
  • I prefer this answer because it doesn't smuggle in the apparent bias for Math.floor(). Math.floor() can have a rounding inaccuracy of up to one second, whereas Math.round()'s inaccuracy approaches only half a second. I think the argument for Math.floor() is that it avoids a "now" timestamp that is technically slightly into the future. Why is that so egregious compared to a "now" timestamp that can be more in the past? Using Math.floor(), which is potentially more inaccurate, simply because it can't produce a "future" timestamp wreaks of over-thinking it. Commented Oct 27, 2023 at 13:30