Skip to content

GetTime ​

Status VerifiedOpcode106TypeRead

Reads the controller's time of day.

Parameters ​

None.

Reply ​

Opcode1106

GetTimeRsp

nametypeunit
formatbool
hourint
minuteint
amPmstring

Example ​

typescript
const reply = await omni.command("GetTime");

Request XML ​

xml
<?xml version="1.0" encoding="UTF-8"?>
<Request xmlns="http://nextgen.hayward.com/api">
  <Name>GetTime</Name>
</Request>

Response XML ​

xml
<?xml version="1.0" encoding="UTF-8" ?>
<Response xmlns="http://nextgen.hayward.com/api">
  <Name>GetTimeRsp</Name>
  <Parameters>
    <Parameter name="Format" dataType="bool">0</Parameter>
    <Parameter name="Hour" dataType="int">2</Parameter>
    <Parameter name="Minute" dataType="int">25</Parameter>
    <Parameter name="AM_PM" dataType="string">PM</Parameter>
  </Parameters>
</Response>

This software is not produced, endorsed, or supported by Hayward Industries, Inc. “Hayward” and “OmniLogic” are trademarks of their respective owners.