# GET /time

Returns the time (with formatting) in GMT and the user's local time zone, if logged in.

Authentication: no security requirement declared for this operation.

Responses:

- 200: Success

Content type: application/json

Type: object

Schema: [Api_Time](https://sourcey-azuracast.pages.dev/docs/api/models/api-time/index.md)

- `timestamp` (required)
  Type: integer
  
  The current UNIX timestamp
  
  Example:
  
  ```json
  1497652397
  ```

- `utc_datetime` (required)
  Type: string
  
  Example:
  
  ```json
  "2017-06-16 10:33:17"
  ```

- `utc_date` (required)
  Type: string
  
  Example:
  
  ```json
  "June 16, 2017"
  ```

- `utc_time` (required)
  Type: string
  
  Example:
  
  ```json
  "10:33pm"
  ```

- `utc_json` (required)
  Type: string
  
  Example:
  
  ```json
  "2012-12-25T16:30:00.000000Z"
  ```

## Examples

### cURL

```bash
curl -X GET 'https://demo.azuracast.com/api/time'
```

### JavaScript

```javascript
const response = await fetch('https://demo.azuracast.com/api/time', {
  method: 'GET',
});

const data = await response.text();
```

### Python

```python
import requests

response = requests.get('https://demo.azuracast.com/api/time')
print(response.text)
```
