# VClockWidget

**Hereda de:** [Widget](https://doc.velneo.com/29/velneo-vdevelop/scripts/lenguajes/javascript/clases/widget).

Esta clase representa al control reloj analógico.

## Funciones

**Generales**

| Retorno  | Función                                          |
| -------- | ------------------------------------------------ |
| Date     | [date](#date)()                                  |
| DateTime | [dateTime](#datetime)()                          |
| Boolean  | [isLocal](#islocal)()                            |
| void     | [SetDate](#setdate)( Date date )                 |
| void     | [SetDateTime](#setdatetime)( DateTime datetime ) |
| void     | [setLocal](#setlocal)()                          |
| void     | [SetTime](#settime)( Time time )                 |
| void     | [setUtc](#setutc)( Number horas )                |
| Time     | [time](#time)()                                  |

**De start/stop**

| Retorno | Función                   |
| ------- | ------------------------- |
| Boolean | [isRunning](#isrunning)() |
| void    | [start](#start)()         |
| void    | [stop](#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.
