cypherbad
asked on
Get Hour
Hi Expers,
First of all i`m a leecher so i only got 100 points left so bare with me xD.
Second i need a code that will show me the current hour, not the time (Timetostr(time)) but only the hour.
Thanks,
Cypher
First of all i`m a leecher so i only got 100 points left so bare with me xD.
Second i need a code that will show me the current hour, not the time (Timetostr(time)) but only the hour.
Thanks,
Cypher
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
you could alos use the
HourOf(Now)
from DateUtils
and how to make it in a showmessage
HourOf(Now)
from DateUtils
and how to make it in a showmessage
ASKER
i found out, thanks.
ASKER
Thanks it worked using inttostr
var HH,MM,SS,MS : Word
begin
DecodeTime(Now,HH,MM,SS,MS
ShowMessageFmt('It is Hour %d',[HH]);
end;