Added mapTime() function to ai sandbox to get the current time.