System.StdConvs.cbTime

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

cbTime: TConvFamily;

C++

extern DELPHI_PACKAGE System::Convutils::TConvFamily cbTime;

Properties

Type Visibility Source Unit Parent
variable public
System.StdConvs.pas
System.StdConvs.hpp
System.StdConvs System.StdConvs

Description

The cbTime variable designates units that measure time.

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 have 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.

See Also