Anonymous user
Date manipulation: Difference between revisions
Change name of result.
(Lingo added) |
(Change name of result.) |
||
Line 2,094:
const func time: parseDate (in string: dateStri) is func
result
var time:
local
const array string: monthNames is [] ("January", "February", "March", "April",
Line 2,103:
begin
dateParts := split(dateStri, ' ');
while monthNames[
incr(
end while;
timeStri := dateParts[4];
if endsWith(timeStri, "am") then
elsif endsWith(timeStri, "pm") then
else
raise RANGE_ERROR;
end if;
if dateParts[5] <> "UTC" then
end if;
end func;
|