querytimestamp constructor