I'm looking for the Delphi eqivalent to the following Ruby Code
if Time.now.hour > 12 then
# Statement;
else
# Alternative Statement;
end
Thanks Stefan
I'm looking for the Delphi eqivalent to the following Ruby Code
if Time.now.hour > 12 then
# Statement;
else
# Alternative Statement;
end
Thanks Stefan
Use
if HourOf(Now) > 12 then
// Statement
else
// Alternative Statement;
after you've added DateUtils
to your uses
clause.