Some pointer handling and date functions.