Added an example source code on using struct tm

- also a function to calculate day of the week (zeller's rule?)