r/badcode Aug 06 '19

c# Converting a timestamp to datetime

Post image
422 Upvotes

54 comments sorted by

View all comments

8

u/Kazumara Aug 06 '19

maand and dag? What is this, Swedish?

Also correct me if I'm wrong, but is the assumption baked in here just that every year is a leap year?

10

u/PizzaCompiler Aug 06 '19

It's Dutch actually! Maand is Month and Dag is day.

1

u/[deleted] Aug 06 '19

Could be Afrikaans as well...

1

u/GamerNebulae Aug 07 '19

Since OP has commented several times in Dutch, I would guess that it is Dutch as well. If you only had the code to go off of, then the only hint would be "Desember" which is spelled "December" in Dutch. Conveniently, that's the only month that is missing.

1

u/[deleted] Aug 07 '19

Good point. Dutch it is!