# In VTK9.3.1 When I read data in the Exodus file format, how can I retrieve the time for each time step?

**URL:** https://discourse.vtk.org/t/in-vtk9-3-1-when-i-read-data-in-the-exodus-file-format-how-can-i-retrieve-the-time-for-each-time-step/14973
**Category:** Support
**Created:** [December 6, 2024, 6:37am UTC](https://discourse.vtk.org/t/in-vtk9-3-1-when-i-read-data-in-the-exodus-file-format-how-can-i-retrieve-the-time-for-each-time-step/14973 "2024-12-06T06:37:07Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![shils](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/s/bbe5ce/32.png) [@shils](https://discourse.vtk.org/u/shils)
#### Post date: [December 6, 2024, 6:37am UTC](https://discourse.vtk.org/t/in-vtk9-3-1-when-i-read-data-in-the-exodus-file-format-how-can-i-retrieve-the-time-for-each-time-step/14973/1 "2024-12-06T06:37:08Z")

</div>

```
    vtkSmartPointer<vtkExodusIIReader> reader = vtkSmartPointer<vtkExodusIIReader>::New();
    reader->SetFileName(filePath.toStdString().c_str());
    reader->Update();
    int cnt = reader->GetNumberOfTimeSteps();

```
