diff -r 80ef3a206772 -r 48780e181b38 Symbian3/SDK/Source/GUID-043A9408-1A97-4122-9364-965ECC08B40F.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/SDK/Source/GUID-043A9408-1A97-4122-9364-965ECC08B40F.dita Tue Jul 20 12:00:49 2010 +0100 @@ -0,0 +1,31 @@ + + + + + +Converting +from any local time to UTC + +To convert the local +time of a non-system time zone to UTC, use CTzConverter::ConvertToUniversalTime(), +specifying the time zone to convert from: +

TInt errCode = myConverter->ConvertToUniversalTime(myTime, myZoneId); +

+

These time conversions internally do the following:

    +
  • fetch a number of 'actualized' rules applicable to the years around +the supplied time and zone, where an 'actualized' rule defines a single and +specific time of year when local time changes. It is derived from the encoded +day rule defined in the Olson’s TZ database RULE.

  • +
  • cache these rules for subsequent use.

  • +
  • identify which rule immediately precedes the time supplied.

  • +
  • apply the appropriate offsets defined by this rule.

  • +

+
+
+
\ No newline at end of file