[Overview][Constants][Types][Classes][Procedures and functions][Variables] |
Convert a TDateTimetime to a string using a predefined format.
Source position: datih.inc line 116
function TimeToStr( |
Time: TDateTime |
):String; |
TimeToStrconverts the time in Timeto a string. It uses the ShortTimeFormatvariable to see what formatting needs to be applied. It is therefor entirely equivalent to a FormatDateTime('t',Time)call.
None.
Program Example25; { This program demonstrates the TimeToStr function } Uses sysutils; Begin Writeln ('The current time is : ',TimeToStr(Time)); End.