Move struct tm utility to examples