Computer Things
Subscribe
RSS
Archive
  Back to the email
Praveen
Nov. 28, 2024, 6:17 a.m.

Stumbled upon this article in your "ten pieces" archive email newsletter. Thank you!

I don't have any programming insight or language implementation advice based on all of this.

JavaScript and other programming languages provide a function to get "milliseconds since the epoch" for any timestamp. So, we could simply call that function for each timestamp, add them up and find the average.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getTime

On a related note, calculating circular mean is also an interesting topic: https://en.wikipedia.org/wiki/Circular_mean

Reply Report
Brought to you by Buttondown, the easiest way to start and grow your newsletter.