{"id":15305222,"url":"https://github.com/eddyverbruggen/nativescript-date-utils","last_synced_at":"2025-08-16T11:37:37.096Z","repository":{"id":57308556,"uuid":"111242834","full_name":"EddyVerbruggen/nativescript-date-utils","owner":"EddyVerbruggen","description":"A simple plugin with a few date-related utilities","archived":false,"fork":false,"pushed_at":"2017-12-03T15:33:39.000Z","size":2003,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-14T23:13:02.847Z","etag":null,"topics":["date","nativescript","nativescript-plugin"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EddyVerbruggen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-18T22:01:09.000Z","updated_at":"2024-05-30T16:32:23.000Z","dependencies_parsed_at":"2022-08-28T23:12:37.946Z","dependency_job_id":null,"html_url":"https://github.com/EddyVerbruggen/nativescript-date-utils","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EddyVerbruggen%2Fnativescript-date-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EddyVerbruggen%2Fnativescript-date-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EddyVerbruggen%2Fnativescript-date-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EddyVerbruggen%2Fnativescript-date-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EddyVerbruggen","download_url":"https://codeload.github.com/EddyVerbruggen/nativescript-date-utils/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248975328,"owners_count":21192210,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["date","nativescript","nativescript-plugin"],"created_at":"2024-10-01T07:59:37.611Z","updated_at":"2025-04-14T23:13:07.393Z","avatar_url":"https://github.com/EddyVerbruggen.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NativeScript Date Utils\n\n[![Build Status][build-status]][build-url]\n[![NPM version][npm-image]][npm-url]\n[![Downloads][downloads-image]][npm-url]\n[![Twitter Follow][twitter-image]][twitter-url]\n\n[build-status]:https://travis-ci.org/EddyVerbruggen/nativescript-date-utils.svg?branch=master\n[build-url]:https://travis-ci.org/EddyVerbruggen/nativescript-date-utils\n[npm-image]:http://img.shields.io/npm/v/nativescript-date-utils.svg\n[npm-url]:https://npmjs.org/package/nativescript-date-utils\n[downloads-image]:http://img.shields.io/npm/dm/nativescript-date-utils.svg\n[twitter-image]:https://img.shields.io/twitter/follow/eddyverbruggen.svg?style=social\u0026label=Follow%20me\n[twitter-url]:https://twitter.com/eddyverbruggen\n\n## Installation\n```bash\ntns plugin add nativescript-date-utils\n```\n\n## Running the demo app\nAfter cloning, go into the `src` folder and run `npm run demo.ios` or `npm run demo.android`.\n\n## API\n\n### `is24hFormat`\n\nDetermine whether or not the user's device is currently running in 24 hour format.\n\n#### TypeScript\n\n```typescript\nimport { DateUtils } from 'nativescript-date-utils';\n\nDateUtils.is24hFormat().then((is24h: boolean) =\u003e {\n  console.log(`This device is currently ${is24h ? '' : 'not'} running in 24 hour format.`);\n});\n```\n\n#### JavaScript\n\n```js\nvar DateUtils = require(\"nativescript-date-utils\").DateUtils;\n\nDateUtils.is24hFormat().then(function (is24h) {\n  console.log('This device is currently ' + (is24h ? '' : 'not') + ' running in 24 hour format.');\n});\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feddyverbruggen%2Fnativescript-date-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feddyverbruggen%2Fnativescript-date-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feddyverbruggen%2Fnativescript-date-utils/lists"}