Sam Schlinkert is a user on octodon.social. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.
Sam Schlinkert @schlink

Any tips on using code to convert from "Days since Jan 1, 1900" (an integer like 41181) to a useable date format (e.g. "28.08.2012")?

I'm looking to do this in , but general tips may be useful. I'd fumble through it from scratch, but the thought of dealing with leap days seems like no fun...

Here's an issue about it with some more info: github.com/tafia/calamine/issu

· Web · 0 · 0

@schlink manually calculate number of seconds from Jan 1 1900 to the start of the Unix epoch. Then use existing unix time functions, adding that offset.