# Gateway Script Only at 4pm

**URL:** <https://forum.inductiveautomation.com/t/gateway-script-only-at-4pm/19979>\
**Category:** Ignition\
**Created:** [October 4, 2018, 12:43pm UTC](https://forum.inductiveautomation.com/t/gateway-script-only-at-4pm/19979 "2018-10-04T12:43:15Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Tim](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tim/32/3361_2.png) [@Tim](https://forum.inductiveautomation.com/u/Tim)\
**Post date:** [October 5, 2018, 2:07pm UTC](https://forum.inductiveautomation.com/t/gateway-script-only-at-4pm/19979/7 "2018-10-05T14:07:49Z")

</div>

From a 1 second timer script.

[code]import system  
from time import localtime, strftime

curTime = strftime("%H:%M:%S", localtime())  
if curTime == ‘16:00:00’: #Time is military time, include leading zero in hour.  
system.tag.write(“tag”,value)[/code]

---

_[View the full topic](https://forum.inductiveautomation.com/t/gateway-script-only-at-4pm/19979)._
