Skip to content

🦕 module for location based timezone provisioning etc. - alpha test phase.

Notifications You must be signed in to change notification settings

michael-spengler/time

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Time

Fortunately there is ICU support since Deno v1.8 came out. So this module will evolve in providing different time related services in the future.

Contributions are welcome.

Usage Example

deno run --allow-read --allow-net https://deno.land/x/time/usage-example.ts
import * as log from "https://deno.land/std/log/mod.ts"
import { TimeService } from "https://deno.land/x/time/mod.ts"

const countryCode = "DE";
const cityName = "Heidelberg";

const timeZone = await TimeService.getTimeZone(countryCode, cityName)
log.info(`The timezone of ${cityName} (${countryCode}) is ${timeZone}`)

Test

deno test --allow-read --allow-net https://deno.land/x/time/test.ts
  

Support my Open Source Contributions

If you like my work please consider downloading the brave browser via my promotion link: https://brave.com/fan464.

About

🦕 module for location based timezone provisioning etc. - alpha test phase.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published