-
Notifications
You must be signed in to change notification settings - Fork 0
Class Clock
Kristian Virtanen edited this page Oct 17, 2024
·
11 revisions
The Clock class provides access to the system's date and time, offering properties to retrieve current time, date, and related information in different formats.
-
Description: Stores the last error message, if any operation fails, including a timestamp in
yyyy-MM-dd HH:mm:ssformat. -
Example:
"2024-10-16 14:30:00: Example error message"
-
Description: Returns the current system time as a string in
HH:mm:ssformat. -
Example:
"14:30:45"
-
Description: Returns the current system date as a string in
yyyy-MM-ddformat. -
Example:
"2024-10-10"
- Description: Returns the current system year as an integer.
-
Example:
2024
- Description: Returns the current system month as an integer.
-
Example:
10
- Description: Returns the current day of the month as an integer.
-
Example:
16
- Description: Returns the current day of the week as a string.
-
Example:
"Wednesday"
- Description: Returns the current system hour as an integer.
-
Example:
14
- Description: Returns the current system minute as an integer.
-
Example:
30
- Description: Returns the current system second as an integer.
-
Example:
45
- Description: Returns the current system millisecond as an integer.
-
Example:
123
- Description: Returns the number of milliseconds that have elapsed since the program started.
-
Example:
5000
- Description: Returns the number of milliseconds that have elapsed since January 1, 2024 (UTC).
-
Example:
2000000000