How Would I Go About....

How would I go about adding Date/Time support (not necessarily the .NET DateTime class, just a simple one for my os) into my playground build of Cosmos that my OS uses as source (as for no confusion, its not in the build tree)? Would I get it
from the CMOS or what?