Not too much. For the reference, the algorithm for the date part is from here:
https://github.com/Microsoft/referencesource/blob/master/mscorlib/system/datetime.cs
The implementation is different, but the algorithm parts are the same and the API that is pretty simple, similar. If you know about an algorithm i can use with the less restrictive license possible it would be great to update it.
I have written all the other things from the scratch and you can use them with a public domain license so you can grab just that part if required.