https://github.com/blakeembrey/exif-date
Parse an EXIF date string into a `Date` object
https://github.com/blakeembrey/exif-date
certificate date exif parser
Last synced: 9 months ago
JSON representation
Parse an EXIF date string into a `Date` object
- Host: GitHub
- URL: https://github.com/blakeembrey/exif-date
- Owner: blakeembrey
- License: other
- Created: 2016-08-14T06:49:43.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2023-12-12T06:50:49.000Z (over 2 years ago)
- Last Synced: 2025-03-10T06:37:27.138Z (over 1 year ago)
- Topics: certificate, date, exif, parser
- Language: TypeScript
- Size: 733 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# Exif Date
[![NPM version][npm-image]][npm-url]
[![NPM downloads][downloads-image]][downloads-url]
[![Build status][build-image]][build-url]
[![Build coverage][coverage-image]][coverage-url]
> Parse an EXIF date string into a `Date` object.
## Installation
```sh
npm install exif-date --save
```
## Usage
```js
import { parse, format } from "exif-date";
parse("2016:07:11 21:33:20"); //=> Date('2016-07-11T21:33:20.000Z')
format(new Date("2016-07-11T21:33:20.000Z")); //=> '2016:07:11 21:33:20'
```
## License
Apache 2.0
[npm-image]: https://img.shields.io/npm/v/exif-date.svg?style=flat
[npm-url]: https://npmjs.org/package/exif-date
[downloads-image]: https://img.shields.io/npm/dm/exif-date.svg?style=flat
[downloads-url]: https://npmjs.org/package/exif-date
[build-image]: https://img.shields.io/github/actions/workflow/status/blakeembrey/exif-date/ci.yml?branch=master
[build-url]: https://github.com/blakeembrey/exif-date/actions/workflows/ci.yml?query=branch%3Amaster
[coverage-image]: https://img.shields.io/codecov/c/gh/blakeembrey/exif-date
[coverage-url]: https://codecov.io/gh/blakeembrey/exif-date