TimeToStr function
Convert a
TDateTime time to a string using a predefined format.
Declaration
function TimeToStr(Time: TDateTime): stringDescription
TimeToStr converts the time in
Time to a string. It uses
the
LongTimeFormat variable to see what formatting needs to be
applied. It is therefor entirely equivalent to a
FormatDateTime('tt',Time) call.
Note that on unix systems, the localization support must be enabled explicitly, see Localization.
Errors
None.
Example: ex25
Program Example25;
{ This program demonstrates the TimeToStr function }
Uses sysutils;
Begin
Writeln ('The current time is : ',TimeToStr(Time));
End.An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
