Python Parse Time String Python Functions Geeksforgeeks Java