userFormatPicAndLcid
userFormatPicAndLcid(pic: String; lcid: Integer): String;
The userFormatPicAndLcid method of the Time primitive type returns a string containing the receiver in the time format picture specified in the pic parameter of the locale specified in the lcid parameter.
If the value of the pic parameter is null, the time format picture of the locale specified in the lcid parameter is returned. If the value of the lcid parameter is zero (0), the time format picture of the current locale is returned.
The picture string can include ".fff" following "s", to output the millisecond part of the time; for example, "H:mm:ss.fff" can generate the strings "13:07:23.543" and "9:53:11.000".
If you do not define the
The following example of the userFormatPicAndLcid method outputs 15:07:23.123.
vars t : Time; s : String; begin t.setTime(15,7,23,123); s := t.userFormatPicAndLcid(″HH:mm:ss.fff″, 0); write s; end;