# $getMinute

`$getMinute` operator returns you the minute of the datetime. You can use this in any [Expression Object](https://docs.cosmocloud.io/concepts-and-in-depth/cql-cosmocloud-query-language/building-expressions)

## Syntax

```javascript
{
    "$getMinute": [<datetime_like_obj>]
}
```

## Properties

| Field                  | Description                                                                                                                                                                         | Required |
| ---------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- |
| \<datetime\_like\_obj> | <p>The \<datetime\_like\_obj> expression can be any valid expression as long as it resolves to datetime objects.<br><br>It can also be a <strong>Magical Autocomplete</strong>.</p> | true     |

## Returns

`integer` - The minute of the datetime provided

## Examples

### Basic Example

```javascript
{
    "$getMinute": ["2024-07-17 06:34:53"]
}
```

The above expression returns **34**

### With Magical Autocomplete

Let's say we have declared a variable `temp` of type `datetime` which has value of `2024-07-17 06:34:53` currently.

```javascript
{
    "$getMinute": [ "$.variables.temp" ]
}
```

The above expression would resolve to a result of **34**
