Text Time Display
Give your clock a human voice. This script converts numeric time values into English words for a stylish, conversational display.
Loading...
Copy the Script
<script>
var numbers = ["Zero", "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Eleven", "Twelve"];
function timeToWords() {
var d = new Date();
var h = d.getHours();
var suffix = (h >= 12) ? "PM" : "AM";
// Convert 24h to 12h
if(h > 12) h -= 12;
if(h == 0) h = 12;
// Simple hour logic
var hourWord = numbers[h];
document.write("It is " + hourWord + " " + suffix);
}
timeToWords();
</script>
Frequently Asked Questions
Yes. This basic version handles the hour and minute directly. For more complex phrasing like 'Quarter past Five', you would need additional conditional logic.
Yes. Simply translate the arrays (`zero`, `one`, `two`...) into Spanish, French, or any other language to create a localized text clock.
It can be good for screen readers if formatted correctly, but standard digital time is generally preferred for clarity.