Skip to content

Commit

Permalink
fix(timestamp-format): Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
tdbrian committed Dec 23, 2021
1 parent 14d5ebf commit 615d0d0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const durationMs = await getDuration('file://<media-path>');

### Get the media file dimensions in pixels

Gets the horizontal (x) and vertical (y) pixels of the media item, either image or video. The returned media dimensions includes both the horizontal (x) length in pixels and vertical (y) length in pixels.
Gets the horizontal (x) and vertical (y) pixels of the media item, either image or video. The returned media dimensions includes an object with both the horizontal (x) length in pixels and vertical (y) length in pixels.

```js
import { getDimensions } from '@qeepsake/react-native-file-utils';
Expand All @@ -42,7 +42,9 @@ const mimeType = await getMimeType('file://<media-path>');

### Get the timestamp of a media item file

Gets the timestamp (js Date) of the media file at the passed Uri.
Gets the string timestamp of the media file from the passed Uri. The timestamp is usually a date retrieved
from either the Exif date if the original datetime of the media is available or by the creation/last modified
timestamp from the file itself.

```js
import { getTimestamp } from '@qeepsake/react-native-file-utils';
Expand Down

0 comments on commit 615d0d0

Please sign in to comment.