Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 1.23 KB

index.md

File metadata and controls

36 lines (29 loc) · 1.23 KB

Documentation

API

import { is24hoursTimeFormat } from 'check-24-hours-time'

// is24hoursTimeFormat returns true if system time is 24 hours. returns false if 12 hours
const result = is24hoursTimeFormat()
console.log(result)

Setup

$ git clone https:/beyondkmp/check-24-hours-time.git
$ cd check-24-hours-time
$ yarn

As this project builds a native module, you'll need these dependencies along with a recent version of Node:

  • Python
    • Let Python install for all users and (customized install) and _ensure the Add python.exe to Path option is selected.
  • One of Visual Studio 2019, Visual C++ Build Tools or Visual Studio 2019
    • Visual C++ Build Tools
      • Run npm config set msvs_version 2019 to tell node to use this toolchain.
    • Visual Studio 2019
      • Ensure you select the Desktop development with C++ feature as that is required by Node.js for installing native modules.
      • Run npm config set msvs_version 2019 to tell node to use this toolchain.
  • Xcode