# Enable/Disable Automatic Time

### API Functions

#### Enable/Disable Automatic Time

{% code overflow="wrap" %}

```java
void enableAutoTime(boolean enable);
```

{% endcode %}

Toggles the automatic time feature on or off based on the 'enable' boolean value.

| Parameters |                                                                                                      |
| ---------- | ---------------------------------------------------------------------------------------------------- |
| enable     | for the auto time setting, a boolean value is used: true enables auto time, while false disables it. |

#### Check Automatic Time Status

{% code overflow="wrap" %}

```java
boolean isEnableAutoTime();
```

{% endcode %}

Returns the current status (enabled/disabled) of the automatic time feature.

| Returns |                                                                                               |
| ------- | --------------------------------------------------------------------------------------------- |
| boolean | <p>a boolean representation of the result. </p><p>true if enable,</p><p>false if disable.</p> |

#### Enable/Disable Automatic Time in GUI

{% code overflow="wrap" %}

```java
void enableAutoTimeGUI(boolean enable);
```

{% endcode %}

Enable or disable the display of the automatic time feature in the GUI based on the 'enable' boolean value.

| Parameters |                                                                                                              |
| ---------- | ------------------------------------------------------------------------------------------------------------ |
| enable     | for the auto time GUI setting, a boolean value is used: true enables auto time GUI, while false disables it. |

#### Check Automatic Time GUI Status

{% code overflow="wrap" %}

```java
boolean isEnableAutoTimeGUI();
```

{% endcode %}

Retrieves the status (enabled/disabled) of the automatic time feature in the GUI.

| Returns |                                                                                               |
| ------- | --------------------------------------------------------------------------------------------- |
| boolean | <p>a boolean representation of the result. </p><p>true if enable,</p><p>false if disable.</p> |

**Resource Download**

* Refer to the cloudpos apidemo - [demo](https://github.com/SmartPOSSamples/APIDemoForAar.git).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://smartpossdk.gitbook.io/cloudpossdk/faq/settings-menu/enable-disable-automatic-time.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
