Description |
The ToLongTimeString returns a string representation of the current DateTime value. The format is the long time format, with no date values.
It is equivalent to ToString('T');
|
|
Microsoft MSDN Links |
System
System.DateTime
|
|
|
A simple example |
program Project1;
{$APPTYPE CONSOLE}
var
when : DateTime;
begin
// 11:12:13 on 20th June 2004
when := DateTime.Create(2004, 6, 20, 11, 12, 13);
Console.WriteLine(when.ToLongTimeString);
Console.ReadLine;
end.
| Show full unit code | 11:12:13
|
|
|
|