Need Library source

Why not just modify the code to use an existing, supported library? You may have the look out for how the days of the week are numbered. Some libraries just use the chip numbering (Sunday = 1), other convert to Unix numbering (Sunday = 0).