While 何時ですか nanji desu ka seems to be a valid translation and the most literal translation of "What time is it?", it seems more common to say 今何時ですか ima nanji desu ka, which is literally "What time is it now?"