Test date and time detect