I have never seen a function like
getTime( char arrayName[] )
{
// code
}
Not saying it's wrong, but i've never seen it done that way.
Usually you would declare a sufficiently large array in the calling function, and
pass a pointer to that array for the getTime() function to use.
void getTime( char* array )
{
// code
}
char bigEnoughArray[50] ;
getTime( bigEnoughArray ); // this is the call to the function
where bigEnoughArray in the function invocation is a pointer to char and could also be written as
getTime ( &bigEnoughArray[0] ) ;
which makes it clear that the actual parameter is the address of the first element of the array.