---
schema_version: "1"
id: 4478bde5d23ad3f468982dfd7c06f12bb49273ffa96a160b393fa77d58feadc7
title: getMinutesInDuration()
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/aura-platform/guides/aura/ref-jsapi/ref-jsapi-auralocalizationservice-getminutesinduration.md
canonical_url: https://developer.salesforce.com/docs/platform/aura-platform/guide/ref-jsapi-auralocalizationservice-getminutesinduration.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: bc6b7041b6636f3ed4da9e660599b08b36341c75c5ea2fcef9ed9a07d7618598
products:
  - Lightning Aura Components Developer Guide
  - Platform Developer Content
---

# getMinutesInDuration()

Returns the number of minutes in a duration.

## Signature

`getMinutesInDuration(Duration duration)`

## Parameters

**_duration_:** Type: `Duration`. The duration object returned by `$A.localizationService.duration`.

## Returns

**Type: `number`** The number of minutes in the duration.

## Sample Code

```javascript
var dur = $A.localizationService.duration(60, 'second');
// Returns 1, the number of minutes in the given duration
$A.localizationService.getMinutesInDuration(dur);
```

**See Also**  


-   [duration()](https://developer.salesforce.com/docs/platform/aura-platform/guide/ref-jsapi-auralocalizationservice-duration.md)

