utcToLocalTime

utcToLocalTime(): TimeStamp;

The utcToLocalTime method of the TimeStamp primitive type converts a timestamp in UTC time to local time using the time zone of the machine in which the method executes; for example, if the method is executing in an application server for a presentation client running on another machine, the bias is taken from the time zone of the machine running the application server.

To convert between local and UTC time in a thin client application in which you want to be sensitive to the bias of the presentation client machine, use the utcToLocalTimeUsingBias method, as shown in the following code fragment.

self.utcToLocalTimeUsingBias(app.currentUTCBias(PresentationClient));

Translations between UTC and local time are based on the formula UTC = local time + bias.

See also the TimeStamp primitive type utcToLocalTimeUsingBias, localToUTCTimeUsingBias, and localToUTCTime methods and the Application class currentUTCBias and getUTCTime methods.