Implementation of 'ptime' and 'ftime' default functions for manipulating and formatting time.