# How can I read and use the time and date of PC (robot) in a program?

**URL:** <https://forum.universal-robots.com/t/how-can-i-read-and-use-the-time-and-date-of-pc-robot-in-a-program/31882>\
**Category:** General Application Help: How do I?\
**Created:** [December 18, 2023, 6:31pm UTC](https://forum.universal-robots.com/t/how-can-i-read-and-use-the-time-and-date-of-pc-robot-in-a-program/31882 "2023-12-18T18:31:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikel.cinza](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/mikel.cinza/32/2457_2.png) [@mikel.cinza](https://forum.universal-robots.com/u/mikel.cinza)\
**Post date:** [December 18, 2023, 6:31pm UTC](https://forum.universal-robots.com/t/how-can-i-read-and-use-the-time-and-date-of-pc-robot-in-a-program/31882/1 "2023-12-18T18:31:32Z")

</div>

How can I read and use the time and date of PC (robot) in a program?

---

<div class="post-metadata">

**Author:** ![efn](https://avatars.discourse-cdn.com/v4/letter/e/35a633/32.png) [@efn](https://forum.universal-robots.com/u/efn)\
**Post date:** [December 19, 2023, 6:17am UTC](https://forum.universal-robots.com/t/how-can-i-read-and-use-the-time-and-date-of-pc-robot-in-a-program/31882/2 "2023-12-19T06:17:03Z")

</div>

I haven’t heard of a way to do this before. time() and clock() don’t work, either.

Maybe you could install a 24v time relay in the controller and connect it to a digital input? 🙂
