Initial commit for competition.

Some useful time- and date-oriented functions based on system calls.