1.0.4 • Published 1 year ago

get-indonesia-time v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

This module is very useful, if your application stores Indonesian time and your application is deployed on a server with a different time zone.

Installation

Yarn Package

yarn add get-indonesia-time

or NPM Package

npm install get-indonesia-time

Usage

CommonJS

const GetIndonesiaTime = require("get-indonesia-time").default;

console.log(GetIndonesiaTime());

ES6

import GetIndonesiaTime from "get-indonesia-time";

console.log(GetIndonesiaTime());

OUTPUT MODELS

interface IGetIndonesiaTime {
  timestamp: number;
  year: number;
  month: number;
  date: number;
  day: number;
  hours: number;
  minutes: number;
  seconds: number;
  milliseconds: number;
}