Sergey Bugaev is a user on mastodon.technology. 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.

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 #rust, 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

Sergey Bugaev @bugaevc

@schlink it's very simple, just add your duration in days to the start date: play.rust-lang.org/?gist=773d7

· Web · 0 · 1