a time class for objective C to manage time values