Skip to main content

convertUTCToLocal function

[String] convertUTCToLocal(

  1. [[String] utcTime]

)

Converts the given UTC time to local time.

params:

  • utcTime: The UTC time string in a valid format.

returns:

  • String: The converted local time string.
  • Returns an empty string if the input is invalid.

Implementation

String convertUTCToLocal(String utcTime) 
  1. talawa
  2. time_conversion
  3. convertUTCToLocal function
time_conversion library