Tis but a common error, which happens amoungst those still learning MEL . . . You are using the ' instead of the ` !!!
you may want to avoid also, in the future creating variables named after MEL functions, i.e., try avoiding the use of "$time"
as getting into the habit of doing that could cause some nasty bugs in your program, and make your code confusing too.
It would be ok to do something like :
int $time01 = `currentTime -query`;
Then it is obvious that it is not a MEL function.
"The Sage as an Astronomer: If you still see the stars as something above you, you lack the eye of knowledge." Friedrich Nietzsche