User Tools

Site Tools

한국어

logicpython:cubloc_api:time

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

logicpython:cubloc_api:time [2026/04/10 02:06] – created - external edit 127.0.0.1logicpython:cubloc_api:time [2026/04/10 06:16] (current) – removed mfranklin
Line 1: Line 1:
-====== Time ====== 
- 
-Read system RTC values for addresses 10 through 13. 
- 
-===== Syntax ===== 
- 
-<code python> 
-from cubloc import Time 
- 
-Time(address: int) 
-</code> 
- 
-===== Parameters ===== 
- 
-  * **address**: ''Time address'' (0 to 255). 
- 
-===== Return Value ===== 
- 
-''Time(10)'' returns seconds (0 to 59). ''Time(11)'' returns minutes (0 to 59). ''Time(12)'' returns hours (0 to 65535). ''Time(13)'' returns continuous seconds (0 to 65535). 
- 
-===== Exceptions ===== 
- 
-  * [[https://docs.micropython.org/en/latest/library/builtins.html#TypeError|TypeError]]: ''address'' is not an integer. 
-  * [[https://docs.micropython.org/en/latest/library/builtins.html#ValueError|ValueError]]: ''address'' is outside 0 to 255. 
-  * [[https://docs.micropython.org/en/latest/library/builtins.html#NotImplementedError|NotImplementedError]]: ''address'' is not supported by this implementation. 
- 
-===== Example ===== 
- 
-<code python> 
-from cubloc import Time 
- 
-# Example usage 
-result = Time(1) 
-print(result) 
-</code> 
- 
-===== Related APIs ===== 
- 
-  * [[logicpython:cubloc_api:debug|Debug]] 
-  * [[logicpython:cubloc_api:nop|Nop]] 
-  * [[logicpython:cubloc_api:setdebug|SetDebug]] 
-  * [[logicpython:cubloc_api:setonglobal|SetOnGlobal]] 
-  * [[logicpython:cubloc_api:sys|Sys]] 
  
logicpython/cubloc_api/time.1775786799.txt.gz · Last modified: by 127.0.0.1