Files
services/examples/time/zone/node/getTheTimezoneInfoForASpecificLocation.js

13 lines
363 B
JavaScript
Executable File

const { TimeService } = require("micro-js-client/time");
// Get the timezone info for a specific location
async function getTheTimezoneInfoForAspecificLocation() {
let timeService = new TimeService(process.env.MICRO_API_TOKEN);
let rsp = await timeService.zone({
location: "London",
});
console.log(rsp);
}
getTheTimezoneInfoForAspecificLocation();