# Real time clock from UR controller

**URL:** <https://forum.universal-robots.com/t/real-time-clock-from-ur-controller/3679>\
**Category:** Technical Questions\
**Tags:** timing\
**Created:** [February 19, 2019, 2:54am UTC](https://forum.universal-robots.com/t/real-time-clock-from-ur-controller/3679 "2019-02-19T02:54:24Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jbm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/jbm/32/614_2.png) [@jbm](https://forum.universal-robots.com/u/jbm)\
**Post date:** [February 19, 2019, 10:28am UTC](https://forum.universal-robots.com/t/real-time-clock-from-ur-controller/3679/2 "2019-02-19T10:28:50Z")

</div>

Is this what you are looking for?

> [@URCap Sample: Get Controller Time in URScript](https://forum.universal-robots.com/t/sample-get-controller-time-in-urscript/1256):
>
> Get Controller Time in URScript Description of functionality: This URCap is in functionality very similar to the [XML-RPC Math sample](http://forum.universal-robots.com/t/sample-xml-rpc-math-urcap/1193/4). However instead of contributing an XML-RPC daemon to expand math functionality, this URCap enables the user through URScript to access the controller time (respectively as year, month, date, hour, etc.) via an XML-RPC call to a Python daemon. Script functions to read these values over URScript are added to the Functions list in the Expression Editor. What topi…

---

_[View the full topic](https://forum.universal-robots.com/t/real-time-clock-from-ur-controller/3679)._
