An open API service indexing awesome lists of open source software.

https://github.com/exitare/capacitor-24h-time


https://github.com/exitare/capacitor-24h-time

Last synced: 6 months ago
JSON representation

Awesome Lists containing this project

README

          

# capacitor-24h-time

The plugin exposes a single method to check if the device is using a 24h time format or not.








## Install

```bash
npm install capacitor-24h-time
npx cap sync
```

## Usage

```typescript
import { DeviceTimeUtils } from "capacitor-24h-time";

// boolean time format. True if 24h, false if 12h
const is24H = await DeviceTimeUtils.is24HourFormat();
```

## Web Api

As of today, the web api will always return false.