Reformats a time string value in the same way as the Siebel 7 Web client does for the US-English locale.
Siebel7Web.bdh
SiebelTime( inout sTime : string) : string;
Time string reformatted the same way as the Siebel 7 Web client does.
Parameter | Description |
---|---|
sTime | Time string in the format as used in Siebel 7 server responses. |
sTime must be a time string in the format H:M:S, where H (hour) must be in the range 0-23 and M (minutes) and S (seconds) must be in the range 0-59. All values may be 1-digit or -2-digit values. The reformatted return value is in the format HH:MM:SS AM|PM. HH, MM and SS each consist of exactly 2 digits, leading zeros are inserted if necessary. HH is in the range 1-12, the postfix "AM" or "PM" is added as appropriate.
transaction TTime begin Writeln(SiebelTime("0:0:0")); Writeln(SiebelTime("1:0:0")); Writeln(SiebelTime("2:0:0")); Writeln(SiebelTime("11:1:2")); Writeln(SiebelTime("11:01:02")); Writeln(SiebelTime("12:1:02")); Writeln(SiebelTime("13:01:2")); Writeln(SiebelTime("22:59:59")); Writeln(SiebelTime("23:59:59")); end TTime;
12:00:00 AM 01:00:00 AM 02:00:00 AM 11:01:02 AM 11:01:02 AM 12:01:02 PM 01:01:02 PM 10:59:59 PM 11:59:59 PM