https://github.com/exitare/capacitor-24h-time
https://github.com/exitare/capacitor-24h-time
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/exitare/capacitor-24h-time
- Owner: Exitare
- Created: 2024-10-06T22:20:16.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-10T20:33:43.000Z (almost 2 years ago)
- Last Synced: 2025-10-26T05:42:52.876Z (9 months ago)
- Language: JavaScript
- Size: 95.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
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.