79522507

Date: 2025-03-20 09:49:38
Score: 1.5
Natty:
Report link

Taking a lead from @Jeffrey's comment this is how you can calculate the Unix timestamp.

= ( A1 - DATE(1970,1,1) ) * 86400

The reason is datetime values in Google Sheets, Excel and other spreadsheets have an epoch of 30th December 1899 whereas Unix epoch is 1st of Jan 1970. There's a bit of tech history around this: https://stackoverflow.com/a/73505120/2294865

Remember datetime/timestamp value is generally interpreted naively as UTC timezone so be aware of this when converting to/from date & time which typically take on local timezones and daylight savings adjustments.

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Jeffrey's
  • Low reputation (0.5):
Posted by: Peter Pudaite