Examples of %TI

Example:

GTM>DO ^%TI
Time: 4:02 PM
GTM>ZWRITE
%TN=57720 

This example invokes %TI, which prompts for an input time. Press <RETURN> to convert the current time. ZWRITE displays the contents of the output variable.

Example:

GTM>ZWRITE
GTM>DO INT^%TI
GTM>ZWRITE
%TN=40954 

This example invokes INT^%TI to convert the current time non-interactively. ZWRITE displays the contents of the output variable %TN.

Example:

GTM>SET %TS="8:30AM"
GTM>DO INT^%TI
GTM>ZWRITE
%TN=30600
%TS="8:30AM" 

This example sets the variable %TS prior to invoking INT^%TI. %TI uses %TS as the input time. ZWRITE displays the contents of the variables.

Example:

GTM>WRITE $$FUNC^%TI("8:30AM")
30600 

This example invokes %TI as an extrinsic function to convert the supplied time to $HOROLOG format. If there is no argument (i.e., $$FUNC^%TI), %TI converts the current time.