# Memory Tag Last Changed Value

**URL:** <https://forum.inductiveautomation.com/t/memory-tag-last-changed-value/17460>\
**Category:** Ignition\
**Created:** [March 22, 2018, 2:44pm UTC](https://forum.inductiveautomation.com/t/memory-tag-last-changed-value/17460 "2018-03-22T14:44:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![compuzak](https://avatars.discourse-cdn.com/v4/letter/c/71c47a/32.png) [@compuzak](https://forum.inductiveautomation.com/u/compuzak)\
**Post date:** [March 22, 2018, 2:44pm UTC](https://forum.inductiveautomation.com/t/memory-tag-last-changed-value/17460/1 "2018-03-22T14:44:42Z")

</div>

How do I get the LastChange attribute of a memory tag in scripting? I can read the tag and get its value, but can’t get the LastChange property. I tried “.LastChange”, “.lastChanged”, and “.lastchange” but all these give me an “object has no attribute” error.

Example:  
myTimestamp = system.tag.read(TagPath)  
print myTimestamp.LastChange

If this attribute is not available from scripting, how do I find out what is and what is not available?

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [March 22, 2018, 3:14pm UTC](https://forum.inductiveautomation.com/t/memory-tag-last-changed-value/17460/2 "2018-03-22T15:14:04Z")

</div>

Add **.LastChange** to your TagPath. Remember to grab the value, as _system.tag.read()_ returns a qualified tag object. 🙂

```auto
TagPath = '[default]Test Tag.LastChange'

myTimestamp = system.tag.read(TagPath)

print myTimestamp.value

```
