# Getting the 'TimeValue' from vtk.vtkXMLPPolyDataReader()

**URL:** https://discourse.paraview.org/t/getting-the-timevalue-from-vtk-vtkxmlppolydatareader/11434
**Category:** ParaView Support
**Tags:** python, vtk
**Created:** [February 18, 2023, 1:30pm UTC](https://discourse.paraview.org/t/getting-the-timevalue-from-vtk-vtkxmlppolydatareader/11434 "2023-02-18T13:30:25Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![abhinavsns](https://discourse.paraview.org/user_avatar/discourse.paraview.org/abhinavsns/32/10946_2.png) [@abhinavsns](https://discourse.paraview.org/u/abhinavsns)
#### Post date: [February 18, 2023, 1:30pm UTC](https://discourse.paraview.org/t/getting-the-timevalue-from-vtk-vtkxmlppolydatareader/11434/1 "2023-02-18T13:30:25Z")

</div>

I have vtk data files with the XML pvtp format.  
The pvtp file specifies the vtp pieces and the array names. It also consists of a Field data called ‘TimeValue’. Paraview has no problem reading the ‘TimeValue’ and getting the time.

However, I am unable to get this TimeValue using the python reader. I have tried looking into the documentation. The only thing that I can get is the name of the array using ‘reader.GetTimeDataArray(0)’ This returns a string ‘TimeValue’  
But reader.GetOutput().GetFieldData(‘TimeValue’) returns None.

It would be great if someone could please help.
