Documentation
Getting Started
Endpoints
Language Guides
JavaScript (Fetch) World Time API Implementation
Modern Fetch API for browsers and Node.js 18+.
JavaScript (Fetch) Integration Snippet
fetch('https://currenttime.now/public/api/ip')
.then(response => response.json())
.then(data => {
console.log('Current Time:', data.datetime);
console.log('UTC Offset:', data.utc_offset);
});