Actions67
- Interface Actions
- Firewall Address List Actions
- IP Pool Actions
- ARP Actions
- DHCP Server Actions
- IP Address Actions
- Hotspot Actions
- Queue Simple Actions
- Wireless Actions
- System Actions
- System Clock Actions
- System Identity Actions
- System Script Actions
- System Scheduler Actions
- IP Service Actions
- Netwatch Actions
- Log Actions
- Custom Command Actions
System Clock → Get Clock
AI-generatedSummary
Retrieve the current system clock from the MikroTik device.
Inputs
- connectionAttempts — Number of times to try connecting to the device
- connectionDelay — Delay between attempts in seconds
- cleanKeys — Replace - and / with _ in response keys
- tag — Custom tag appended as .tag=${tag} to the API call
Output shape
Clock data including date, time, and time-zone-name. Returned as a JSON array with count and data fields; keys may have hyphens and slashes replaced with underscores if cleanKeys is enabled.
Read-only operation; no side effects on the device.
Examples
Example 1: Fetch clock once with default options.
Leave all option fields at their defaults; the node issues /system/clock/print and returns the clock values.
Example 2: Fetch clock with retry logic and key cleaning.
Set connectionAttempts to 3, connectionDelay to 2, and cleanKeys to true; the node will retry up to 3 times with 2-second gaps, and any hyphens or slashes in response keys will be converted to underscores.