Skip to main content

convertLocalToUTC function

[String] convertLocalToUTC(

  1. [[String] localTime]

)

Converts the given local time to UTC time.

params:

  • localTime: The local time string in a valid format.

returns:

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

Implementation

String convertLocalToUTC(String localTime) 
  1. talawa
  2. time_conversion
  3. convertLocalToUTC function
time_conversion library