RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TXSCustomDateTime.AsUTCDateTime Property

Represents the object's value as a TDateTime value using UTC time.

Pascal
property AsUTCDateTime: TDateTime;
C++
__property TDateTime AsUTCDateTime;

Use AsUTCDateTime to read the value of the TXSCustomDateTime object into a variable of type TDateTime or set its value from a TDateTime value. AsUTCDateTime handles the mapping between a TDateTime value and the Year, Month, Day, Hour, Minute, and Second values. It also makes an adjustment for the HourOffset and MinuteOffset properties, so that the value of AsUTCDateTime is a Coordinated Universal Time (UTC) value rather than a local time value.

Note: To get or set the value as a local time value ignoring the HourOffset and MinuteOffset properties, use the AsDateTime property instead.
 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!