All Projects → rubenillodo → Windows Iana

rubenillodo / Windows Iana

Licence: mit
A small tool to convert Windows time zones to IANA

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Windows Iana

google-photos-timezone-fix
Iterates over photos in given Google Photos album and edits date/time/timezone of each photo in order to fix their order
Stars: ✭ 22 (+29.41%)
Mutual labels:  timezone
NTP
NTP library for Arduino framework
Stars: ✭ 20 (+17.65%)
Mutual labels:  timezone
Dateutils
nifty command line date and time utilities; fast date calculations and conversion in the shell
Stars: ✭ 458 (+2594.12%)
Mutual labels:  timezone
intl-format
A wrapper library for PHP to format and internationalize values in messages like sprintf
Stars: ✭ 12 (-29.41%)
Mutual labels:  timezone
gwt-time
Backport of functionality based on JSR-310 to GWT. This is NOT an implementation of JSR-310.
Stars: ✭ 17 (+0%)
Mutual labels:  timezone
Spacetime
A lightweight javascript timezone library
Stars: ✭ 3,463 (+20270.59%)
Mutual labels:  timezone
Shell-Scripts
Shell scripts about some basic topics, current time, calculator, sorting, restaurant and more.
Stars: ✭ 100 (+488.24%)
Mutual labels:  timezone
Geolocator
A utility for getting geo-location information via HTML5 and IP look-ups, geocoding, address look-ups, distance and durations, timezone information and more...
Stars: ✭ 598 (+3417.65%)
Mutual labels:  timezone
tz
🌐 A time zone helper
Stars: ✭ 528 (+3005.88%)
Mutual labels:  timezone
Date Fns Tz
Complementary library for date-fns v2 adding IANA time zone support
Stars: ✭ 385 (+2164.71%)
Mutual labels:  timezone
ng2-timezone-selector
A simple Angular module to create a timezone selector using moment-timezone.
Stars: ✭ 12 (-29.41%)
Mutual labels:  timezone
nepali-datetime
Python's core datetime inspired nepali datetime (BS date & NPT) package 🇳🇵
Stars: ✭ 36 (+111.76%)
Mutual labels:  timezone
Googleapi
C# .NET Core Google Api (Maps, Places, Roads, Search, Translate). Supports all endpoints and requests / responses.
Stars: ✭ 346 (+1935.29%)
Mutual labels:  timezone
setup-timezone
setup timezone for actions
Stars: ✭ 20 (+17.65%)
Mutual labels:  timezone
Timezone Boundary Builder
A tool to extract data from Open Street Map (OSM) to build the boundaries of the world's timezones.
Stars: ✭ 469 (+2658.82%)
Mutual labels:  timezone
geo-sql-database
Continents, Sub-Continents, Countries, States, Cities, Timezones, Currencies SQL database.
Stars: ✭ 30 (+76.47%)
Mutual labels:  timezone
Time4j
Advanced date, time and interval library for Java with sun/moon-astronomy and calendars like Chinese, Coptic, Ethiopian, French Republican, Hebrew, Hijri, Historic Christian, Indian National, Japanese, Julian, Korean, Minguo, Persian, Thai, Vietnamese
Stars: ✭ 328 (+1829.41%)
Mutual labels:  timezone
Swiftdate
🐔 Toolkit to parse, validate, manipulate, compare and display dates, time & timezones in Swift.
Stars: ✭ 6,661 (+39082.35%)
Mutual labels:  timezone
Valheim Docker
Valheim Docker powered by Odin. The Valheim dedicated gameserver manager which is designed with resiliency in mind by providing automatic updates, world backup support, and a user friendly cli interface.
Stars: ✭ 525 (+2988.24%)
Mutual labels:  timezone
Zonebie
Zonebie prevents bugs in code that deals with timezones by randomly assigning a zone on every run
Stars: ✭ 382 (+2147.06%)
Mutual labels:  timezone

Build Status Coverage Status

This library exports two functions to help convert from Windows time zones to IANA time zones (based on this mapping definition and this list of IANA aliases).

Installation

Add the dependency to your project with npm install --save windows-iana or yarn add windows-iana.

Usage

The library exports:

  • findIana(): will return an array of possible IANA time zones, including all their aliases.
  • findOneIana(): will return just one string.
  • findWindows(): will return a string with a Windows time zone.
  • findAlias(): will an array of all IANA aliases, including the one passed as a parameter.
  • getAllIanaWindowsMap(): will return an map of all IANA time zones as key, and a Windows time zone as value.

findOneIana()

import { findOneIana } from "windows-iana";

const result = findOneIana("Romance Standard Time");
console.log(result); // "Europe/Paris"

You may also pass the territory code as a second parameter (have a look again at the mapping by unicode.org for more details).

import { findOneIana } from "windows-iana";

const result = findOneIana("Romance Standard Time", "ES");
console.log(result); // "Europe/Madrid"

findIana()

import { findIana } from "windows-iana";

const result = findIana("Romance Standard Time");
console.log(result); // ["Europe/Paris"]

You may also pass the territory code to findIana().

import { findIana } from "windows-iana";

const result = findIana("Romance Standard Time", "ES");
console.log(result); // ["Europe/Madrid", "Africa/Ceuta"]

findWindows()

import { findWindows } from "windows-iana";

const result = findWindows("America/New_York");
console.log(result); // Eastern Standard Time

There is no territory code for this function because all IANA names map to exactly one territory.

findAlias()

import { findAlias } from "windows-iana";

const result = findAlias("America/New_York");
console.log(result); // ["America/New_York", "US/Eastern"]

getAllIanaWindowsMap()

import { getAllIanaWindowsMap } from "windows-iana";

const result = getAllIanaWindowsMap();
console.log(result.get('America/New_York')); // Eastern Standard Time
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].