Please be more specific. How are you sending this time number? Serial I preaume (UART)? Are you sending this number in ascii or binary format ? If ascii than assuming the number is received into a buffer called buffer that is null terminated the code to set the time would look something like this