Get the currentTime() in Maya using Python

Used to get the current time in the animation timeline:

It will return the timeline frame:

currentTime = currentTime(query=True)

print currentTime

The argument query=True specifies that we are querying the timeline and not changing it.