C Program To Validate A Given Time