> For the complete documentation index, see [llms.txt](https://help.qtech.co.nz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.qtech.co.nz/water-insight/handheld-tools/ep3-programmer/time-and-date.md).

# Set the time and date

Set the EP3's clock, then send the time to one IPC or broadcast it to every IPC in range, on V3 and V5 sites.

Each IPC runs a scheduled watering plan according to a real time clock in the device. The EP3 clock time is used for synchronising the IPCs so it is important that it is correct before sending Timeset commands out to IPCs. If there is an INC on the site – never go out into the field without synchronising the time on the EP3 to the time on the INC (not necessarily to your mobile phone in case the site time is different).

{% hint style="info" %}
**Applies to:** the Water-Insight EP3. In firmware prior to version 5.00 the user must set the date, time and the day and cycle period. In version 5.00 or later the day is automatically calculated by the EP3 (and IPC) and the cycle period is defined in each schedule file.
{% endhint %}

## Set the EP3's clock

1. To alter the time value, from the Main Menu tap **Settings** and tap **Time**.
2. Then tap the value that you want to edit using the numeric keyboard. Set the EP3 time to match the site time. Sites with INC – use same time as INC. Sites without INC – request status from several IPCs to gauge current site time.
3. **V3 sites only:** In firmware prior to version 5.00 the user must set the date, time and the day and cycle period. The cycle period is established from the scheduling requirements. On older EP3s (V4) you must manually set the day of the cycle. This must always match the time on the site.
4. Adjust each value as required then tap **Back**. Do not tap the **Send** button because this will attempt to transmit the time to all nearby units.

![The EP3 time and date screen on V5 firmware](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2F4ombsWqylG6wvgRIKW6n%2Fep3-time-v5.png?alt=media)

Watch out for EP3 times that are out by a massive amount if you haven't used it for a while. The EP3 real time clock backup battery might need replacing and you could upset the time on the site by accidentally sending a bad timeset.

**To find a site's cycle period:** the schedule file entry `cycle_length` is the modulo number of days in each cycle (schedules are cyclic). Viewing the status of a few IPCs will return their time, day and cycle period.

## Send the time to one IPC

To repair the time on an individual IPC a local timeset method is used. The preferred method is to issue a unicast (local) timeset to the specific IPC.

1. First select the IPC you want to change then issue the timeset comms command to it: main>ipc list>(select an IPC)>view>comms>(check timeset box)>send.
2. The Timeset command can only be sent using the Local method.
3. After issuing a timeset it always pays to follow this by requesting the IPC status to verify the time and that the schedule on the IPC matches the schedule held in the EP3 schedule list for that IPC.

## Broadcast the time to the site

A broadcast timeset is issued from the EP3 using the settings>time>send button and will be transmitted to all nearby IPCs which will then retransmit the time to neighbouring IPCs to propagate the time. This method is not guaranteed to reach every IPC on a site.

1. The radio on the EP3 can sometimes work up to a few hundred metres, so stand within radio range of the IPCs.
2. From the Main Menu tap **Settings** and tap **Time**.
3. To send the time to (older) IPC devices using firmware prior to V5.xx (i.e V3.xx) deselect the option **Use Farm ID**. To send the time to units running V5.xx firmware or later select the option **Use Farm ID**. If the site is running a mixture of devices on old and new firmware repeat the process twice, once with the **Use Farm ID** option selected and once without.
4. Pressing the **Send** button will make the EP3 broadcast a Network Flooding time set command to all IPCs in the system.
5. By moving around on a site and repeating the process the time is propagated. IPCs should then be status checked to see if they have received the time and if not then the preferred method is to issue a unicast (local) timeset to the specific IPC.

In general, once a site is set up broadcast timesets should be avoided except for routine maintenance every few months for change of daylight saving or to resynchronise the site when watering schedules are revised. If not undertaken carefully broadcast timesets can leave parts of the site on different times thus interfering with correct schedule operation. The INC will periodically broadcast its time in order to compensate for time drift of the real time clocks in each IPC. In IMS, the Timeset Period is how often IPC time is synchronised with the gateway time.

The clock on the IPC can drift over time with temperature and if it doesn't receive a timeset it can drift by more than a minute and eventually become a problem. Regular timeset distribution is recommended (at least once per month).

## What a time change does to watering

The schedule list is described in relative terms but the alarm times are converted to a date/time. The list is only recalculated when the IPC undergoes a power restart, when the IPC receives a message with the schedules, and at midnight at the end of the last day of the cycle period. For V5 IPCs the schedule alarms are also updated when a timeset is received.

If the time on an IPC is altered the IPC will continue the current operation (valve on or not) until the time matches the alarm value. Beware that if you move the IPC time beyond the alarm time the alarm event will not occur. This could result in units being stuck on or off. Eventually when midnight at the end of the cycle period occurs the alarm table is recalculated and new alarm values are generated for the real-time clock.

At midnight IPCs will turn off and drive circuits for IPC scheduled to turn on at midnight will charge ready for operation just after midnight. It can take up to a minute for this process to complete which can result in no IPC valves on at all for a short time until the new events of the new cycle period commence.
