scanTimeUTC()

Determines the local time from a UTC time string.

Synopsis

time scanTimeUTC(string timeStr);

Parameters

Parameter Description
timeStr

A UTC time string in the format "YYYY.MM.DD HH:MM:SS.mmm".

or in the "ISO" format:

"YYYY-MM-DDTHH:MM:SS.mmm", for example:

"2014-06-30T16:30:03.007Z"

Return value

Local time

Errors

For example: no/incorrect parameters, incorrect format.

Description

This function determines the local time from a UTC time string.

Example

main()
{
  time scanUTC;
  scanUTC = scanTimeUTC("2010.06.01 05:30:00.200");
  DebugN("scanUTC: ", scanUTC);
  //Output: ["scanUTC: "][2010.06.01 07:30:00.200000000]
}

Assignment

Time functions

Availability

CTRL