You need to be familiar with InTouch scripting.
What I think lostcontrol is thinking of is creating a Data Change script on the system tag $Operator. In this script you conditionally (IF..THEN) write the system time $Hour and $Minute to either one Message tag or two Integer tags (e.g. LogOnHour and LogOnMinutes). The system $Operator gets the value "None" (not nothing) when nobody is logged in.
Sounds like you're trying to write to a system tag. System tags can only be read, like this:
LogOnHour = $Hour;
Writing (or assigning) like this is not allowed:
$Hour = ...;