---
title: "AnalogClock (Aluminum)"
canonical: "https://docs.cuesystem.com/space/CVCGC/453640259/AnalogClock%20(Aluminum)"
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 four object sizes can be selected.

![image](media://04d0b2da-1f21-41e1-9e12-ce463872544e)

# Properties

> Macro (excerpt)
> 
> See section [Common Section of Generic object collection | Properties](https://cue.atlassian.net/wiki/spaces/CVCGC/pages/407535672/Common+Section+of+Generic+object+collection#Properties). In addition, this object uses the following properties.
> 
> |  |  |  |  |  |
> | --- | --- | --- | --- | --- |
> | Property Name | Data Type | Allowed Values | Default Value | Description |
> | Appearance |
> | ObjectSize | Long | 0 = Drag&Fit  
> 1 = 120x120  
> 2 = 280x280  
> 3 = 480x480  
> 4 = 605x605 | 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

> Macro (excerpt)
> 
> See section [Common Section of Generic object collection | Functions](https://cue.atlassian.net/wiki/spaces/CVCGC/pages/407535672/Common+Section+of+Generic+object+collection#Functions). In addition, this object uses the following functions.
> 
> ## SetObjectSize
> 
> This function sets object size to newobjectsize. Possible values are
> 
> - 0 = Drag&Fit
> - 1 = 120x120
> - 2 = 280x280
> - 3 = 480x480
> - 4 = 605x605
> 
> 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 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 a 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
> ```