# VClockWidget

**Hereda de:** [Widget](/23/velneo-vdevelop/scripts/lenguajes/javascript/clases/widget.md).

Esta clase representa al control reloj analógico.

## Funciones

**Generales**

| Retorno  | Función                                                                                                                 |
| -------- | ----------------------------------------------------------------------------------------------------------------------- |
| Date     | [date](/23/velneo-vdevelop/scripts/lenguajes/javascript/clases/vclockwidget.md#date)()                                  |
| DateTime | [dateTime](/23/velneo-vdevelop/scripts/lenguajes/javascript/clases/vclockwidget.md#datetime)()                          |
| Boolean  | [isLocal](/23/velneo-vdevelop/scripts/lenguajes/javascript/clases/vclockwidget.md#islocal)()                            |
| void     | [SetDate](/23/velneo-vdevelop/scripts/lenguajes/javascript/clases/vclockwidget.md#setdate)( Date date )                 |
| void     | [SetDateTime](/23/velneo-vdevelop/scripts/lenguajes/javascript/clases/vclockwidget.md#setdatetime)( DateTime datetime ) |
| void     | [setLocal](/23/velneo-vdevelop/scripts/lenguajes/javascript/clases/vclockwidget.md#setlocal)()                          |
| void     | [SetTime](/23/velneo-vdevelop/scripts/lenguajes/javascript/clases/vclockwidget.md#settime)( Time time )                 |
| void     | [setUtc](/23/velneo-vdevelop/scripts/lenguajes/javascript/clases/vclockwidget.md#setutc)( Number horas )                |
| Time     | [time](/23/velneo-vdevelop/scripts/lenguajes/javascript/clases/vclockwidget.md#time)()                                  |

**De start/stop**

| Retorno | Función                                                                                          |
| ------- | ------------------------------------------------------------------------------------------------ |
| Boolean | [isRunning](/23/velneo-vdevelop/scripts/lenguajes/javascript/clases/vclockwidget.md#isrunning)() |
| void    | [start](/23/velneo-vdevelop/scripts/lenguajes/javascript/clases/vclockwidget.md#start)()         |
| void    | [stop](/23/velneo-vdevelop/scripts/lenguajes/javascript/clases/vclockwidget.md#stop)()           |

## Documentación de funciones

### Funciones generales

#### Date date() <a href="#date" id="date"></a>

Devuelve la fecha.

#### DateTime dateTime() <a href="#datetime" id="datetime"></a>

Devuelve la fecha y hora.

#### Boolean isLocal() <a href="#islocal" id="islocal"></a>

Devuelve si la hora es local.

#### void SetDate( Date date ) <a href="#setdate" id="setdate"></a>

Establece la fecha del reloj.

Parámetros:

* date: valor de tipo hora.

#### void SetDateTime( DateTime datetime ) <a href="#setdatetime" id="setdatetime"></a>

Establece la fecha y hora del reloj.

Parámetros:

* dateTime: valor de tipo tiempo, fecha y hora.

#### void setLocal() <a href="#setlocal" id="setlocal"></a>

Establece que la hora es local.

#### void SetTime( Time time ) <a href="#settime" id="settime"></a>

Establece la hora.

Parámetros:

* time: valor de tipo hora.

#### void setUtc( Number horas ) <a href="#setutc" id="setutc"></a>

Establece la zona horaria.

Parámetros:

* horas: número que indica la diferencia horaria UTC.

#### Time time() <a href="#time" id="time"></a>

Devuelve la hora del reloj.

### Funciones de start/stop

#### Boolean isRunning() <a href="#isrunning" id="isrunning"></a>

Devuelve si el reloj esta en marcha.

#### void start() <a href="#start" id="start"></a>

Pone el reloj en marcha.

#### void stop() <a href="#stop" id="stop"></a>

Para el reloj.


---

# 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://doc.velneo.com/23/velneo-vdevelop/scripts/lenguajes/javascript/clases/vclockwidget.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.
