@silverwal/whentz-core
v0.1.0
Published
Natural-language timezone conversion. Type '8am GMT in EAT', get the answer.
Maintainers
Readme
@silverwal/whentz-core
Core library for whentz, a deterministic natural-language timezone converter.
npm install @silverwal/whentz-coreimport { tz } from '@silverwal/whentz-core';
const result = tz('5am pt in eat', { homeZone: 'Africa/Kampala' });
if (result.ok) {
console.log(result.text);
console.log(result.json);
}The package exports the high-level tz() helper plus the lower-level parse(), convert(), format(), toJson(), lookup() and scan() APIs.
See the full README at https://github.com/swalusimbi/whentz.
