RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TXSTime.AsTime Property

Represents the object's value as a TDateTime value.

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

Use AsTime to read the value of the TXSTime object into a variable of type TDateTime or set its value from a TDateTime value. AsTime handles the mapping between a TDateTime value and the Hour, Minute, and Second properties. When reading AsTime, the resulting TDateTime value is given a data portion of 0. When setting AsTime, the data portion is ignored.

Note: AsTime represents the time using Coordinated Universal Time (UTC). To convert this to a local time, add the offsets specified by HourOffset and MinuteOffset to the hours and minutes.
 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!