Ok, found it. It is in the temporalCapabilities...
So given a loaded netcdf/mesh with time.
Easiest is the firstTimeStepDuration(i) of
QgsMeshDataProviderTemporalCapabilities:
>>> p = iface.activeLayer().dataProvider().temporalCapabilities()
>>> p
>>> p.timeExtent()
>>>
Hi,
When loading (temporal) Netcdf files (as MeshLayers), the 'timestep'
that you see in the Temporal Controller does not change.
I had a look at the api, but could not find any indication of knowledge
by the QgsMeshLayer of the size of the timesteps of the data.
Within netcdf's it is