---
title: "AnalogClock (Basic)"
canonical: "https://docs.cuesystem.com/space/CVCGC/403570689/AnalogClock%20(Basic)"
format: markdown
---
> Macro (toc)

---

# Description

This object displays the current local date and time of a CUEunit. Date and seconds hand can be hidden. Up to eight object sizes can be selected.

![image](media://f669add2-52cf-427f-9c85-3f3f381b5e43)

# Properties

|  |  |  |  |  |
| --- | --- | --- | --- | --- |
| Property Name | Data Type | Allowed Values | Default Value | Description |
| Appearance |
| ObjectSize | Long | 0 = Drag&Fit   
1 = 100x100   
2 = 120x120  
3 = 160x160  
4 = 200x200  
5 = 280x280  
6 = 360x360  
7 = 480x480  
8 = 600x600 | 0 | Specifies the size of the object. If Drag&Fit is selected it picks the biggest size which fits into the object boundary. |
| ShowDate | Boolean | True, False | True | Specifies whether the date is shown. |
| ShowSeconds | Boolean | True, False | True | Specifies whether the seconds hand is shown. |

# Functions

## SetObjectSize 

This function sets object size to newobjectsize. Possible values are

- 0 = Drag&Fit
- 1 = 100x100
- 2 = 120x120
- 3 = 160x160
- 4 = 200x200
- 5 = 280x280
- 6 = 360x360
- 7 = 480x480
- 8 = 600x600

The function returns True on success or False if an error occurs.

#### Syntax

```visualbasic
Function SetObjectSize(newobjectsize As Long) As Boolean
```

## GetObjectSize

This function returns the current object size. For possible values see function SetObjectSize.

#### Syntax

```visualbasic
Function GetObjectSize() As Long
```

## SetShowDate 

This function sets whether date is visible or not.

#### Syntax

```visualbasic
Function SetShowDate(newshowdate As Boolean) As Boolean
```

## GetShowDate 

This function returns whether date is visible or not.

#### Syntax

```visualbasic
Function GetShowDate() As Boolean
```

## SetShowSeconds

This function sets whether seconds hand is visible or not.

#### Syntax

```visualbasic
Function SetShowSeconds(newshowseconds As Boolean) As Boolean
```

## GetShowSeconds 

This function returns whether seconds hand is visible or not.

#### Syntax

```visualbasic
Function GetShowSeconds() As Boolean
```