{"id":17472731,"url":"https://github.com/shinnn/current-exif-date","last_synced_at":"2025-03-28T08:10:25.282Z","repository":{"id":57211093,"uuid":"137427156","full_name":"shinnn/current-exif-date","owner":"shinnn","description":"Get the current date as an Exif date format","archived":false,"fork":false,"pushed_at":"2019-03-29T04:19:23.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-04T03:11:59.074Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shinnn.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":"2018-06-15T01:36:38.000Z","updated_at":"2019-03-29T04:19:25.000Z","dependencies_parsed_at":"2022-09-01T08:21:14.813Z","dependency_job_id":null,"html_url":"https://github.com/shinnn/current-exif-date","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinnn%2Fcurrent-exif-date","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinnn%2Fcurrent-exif-date/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinnn%2Fcurrent-exif-date/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinnn%2Fcurrent-exif-date/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shinnn","download_url":"https://codeload.github.com/shinnn/current-exif-date/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245991582,"owners_count":20706129,"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":[],"created_at":"2024-10-18T17:34:58.299Z","updated_at":"2025-03-28T08:10:25.259Z","avatar_url":"https://github.com/shinnn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# current-exif-date\n\n[![npm version](https://img.shields.io/npm/v/current-exif-date.svg)](https://www.npmjs.com/package/current-exif-date)\n[![Build Status](https://travis-ci.com/shinnn/current-exif-date.svg?branch=master)](https://travis-ci.com/shinnn/current-exif-date)\n[![Coverage Status](https://img.shields.io/coveralls/shinnn/current-exif-date.svg)](https://coveralls.io/github/shinnn/current-exif-date?branch=master)\n\nGet the current date as an Exif date format\n\n```javascript\nconst currentExifDate = require('current-exif-date');\n\ncurrentExifDate(); //=\u003e '2018:06:15 10:13:05'\n```\n\nAccording to the [Exif specification (PDF)](http://www.cipa.jp/std/documents/e/DC-008-Translation-2016-E.pdf), the format of `DateTime`, `DateTimeOriginal` and `DateTimeDigitaized` is:\n\n\u003e \"YYYY:MM:DD HH:MM:SS\" with time shown in 24-hour\nformat, and the date and time separated by one blank character\n\n## Installation\n\n[Use](https://docs.npmjs.com/cli/install) [npm](https://docs.npmjs.com/about-npm/).\n\n```\nnpm install current-exif-date\n```\n\n## API\n\n```javascript\nconst currentExifDate = require('current-exif-date');\n```\n\n### currentExifDate()\n\nReturn: `string`\n\nNote that the resultant date indicates the *local* time.\n\n```javascript\n// In Japan\n\nnew Date().toString(); //=\u003e 'Fri Jun 15 2018 01:04:30 GMT+0900 (JST)'\nnew Date().toUTCString(); //=\u003e 'Thu, 14 Jun 2018 16:04:30 GMT'\n\ncurrentExifDate(); //=\u003e '2018:06:15 01:04:30', not '2018:06:14 01:04:30 16:04:30'\n```\n\n## License\n\n[ISC License](./LICENSE) © 2018 - 2019 Shinnosuke Watanabe\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshinnn%2Fcurrent-exif-date","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshinnn%2Fcurrent-exif-date","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshinnn%2Fcurrent-exif-date/lists"}