Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

exif-date-to-iso

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

exif-date-to-iso

Convert an EXIF date to ISO 8601

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

exif-date-to-iso

Convert an EXIF date to ISO 8601.

EXIF dates don't have a timezone, so a timezone name is passed in.

Future feature: Auto discovery of the timezone using an image's EXIF GPS coordinates.

Example Usage

Convert to ISO in America/Los_Angeles timezone

const exifDate = require('exif-date-to-iso');
const exifDateTimeOriginal = '2015:03:17 19:39:10';

console.log(exifDate.toISO(exifDateTimeOriginal, 'America/Los_Angeles'));

'2015-03-18T02:39:10.000Z'

For a list of all timezones

exifDate.timezones();

Unit tests

See src/index.es6.spec.js

Installation

npm install exif-date-to-iso

Build Status

Build Status

Keywords

date

FAQs

Package last updated on 02 Jul 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts