RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
StdConvs.cbTime Variable

Represent units that measure cbTime.

Pascal
cbTime: TConvFamily;
C++
TConvFamily cbTime;

Use the cbTime unit variables as parameters to the Convert function to convert a cbTime measurement to a different set of units. The StdConvs unit registers these cbTime measurement units in the cbTime family and assigns the resulting TConvType values to these global variables.

Note: Conversions involving tuMonths, tuYears, tuDecades, tuCenturies, and tuMillennia are approximations, due to the fact that not all months nor all years are the same length. If you are only using units that are multiples of years, you may want to register your own conversion family that uses years as a base unit so that conversions are more accurate.
Note: To initialize these variables in C++ programs, use the InitStdConvs procedure.
 

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