self class time query functioning