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

---

# Description

This object displays current local date and time of a CUEunit. Seconds part can be hidden. In 12 hour mode the AM or PM symbol is displayed. Up to eight object sizes can be selected.

![image](media://d72459e2-ce92-44bb-9568-85ba6cb8f2bf)

![image](media://c35502f3-9b95-46e2-b73e-eea3a99a195d)

# Properties

|  |  |  |  |  |
| --- | --- | --- | --- | --- |
| Property Name | Data Type | Allowed Values | Default Value | Description |
| Appearance |
| ObjectSize | Long | 0 = Drag&Fit  
1 = 99x40  
2 = 150x60  
3 = 199x80  
4 = 249x100  
5 = 299x120  
6 = 398x160  
7 = 500x200  
8 = 690x280 | 0 | Specifies size of the object. If Drag&Fit is selected it picks biggest size which fits into object boundary. |
| ShowSeconds | Boolean | True, False | True | Specifies whether seconds are shown. |
| TimeMode | Long | 0 = 24 Hour  
1 = 12 Hour | 24 Hour | Specifies 24 or 12 hour time mode. |

# Functions

## SetObjectSize 

This function sets object size to newobjectsize. Possible values are

- 0 = Drag&Fit
- 1 = 99x40
- 2 = 150x60
- 3 = 199x80
- 4 = 249x100
- 5 = 299x120
- 6 = 398x160
- 7 = 500x200
- 8 = 690x280

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

#### Syntax

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

## GetObjectSize

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

#### Syntax

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

## SetShowSeconds

This function sets whether seconds are visible or not.

#### Syntax

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

## GetShowSeconds

This function returns whether seconds are visible or not.

#### Syntax

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

## SetTimeMode 

This function sets TimeMode to newtimemode. Possible values are

- 0 = 24 Hour
- 1 = 12 Hour

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

#### Syntax

```visualbasic
Function SetTimeMode(newtimemode As Long) As Boolean
```

## GetTimeMode 

This function returns current TimeMode. For possible values see function SetTimeMode.

#### Syntax

```visualbasic
Function GetTimeMode() As Long
```