Skip to content

Class Clock

Kristian Virtanen edited this page Oct 16, 2024 · 11 revisions

Properties

Clock.LastError

  • Description: Stores the last error message, if any operation fails, including a timestamp in yyyy-MM-dd HH:mm:ss format.
  • Example: "2024-10-16 14:30:00: Example error message"

Clock.Time

  • Description: Returns the current system time as a string in HH:mm:ss format.
  • Example: "14:30:45"

Clock.Date

  • Description: Returns the current system date as a string in yyyy-MM-dd format.
  • Example: "2024-10-10"

Clock.Year

  • Description: Returns the current system year as an integer.
  • Example: 2024

Clock.Month

  • Description: Returns the current system month as an integer.
  • Example: 10

Clock.Day

  • Description: Returns the current day of the month as an integer.
  • Example: 16

Clock.WeekDay

  • Description: Returns the current day of the week as a string.
  • Example: "Wednesday"

Clock.Hour

  • Description: Returns the current system hour as an integer.
  • Example: 14

Clock.Minute

  • Description: Returns the current system minute as an integer.
  • Example: 30

Clock.Second

  • Description: Returns the current system second as an integer.
  • Example: 45

Clock.Millisecond

  • Description: Returns the current system millisecond as an integer.
  • Example: 123

Clock.ElapsedMillisecondsAfterStart

  • Description: Returns the number of milliseconds that have elapsed since the program started.
  • Example: 5000
  • On Error: Returns -1. See Clock.LastError for mode detailed error message.

Clock.ElapsedMilliseconds

  • Description: Returns the number of milliseconds that have elapsed since January 1, 2024 (UTC).
  • Example: 2000000000
  • On Error: Returns -1. See Clock.LastError for mode detailed error message.

Top

Clone this wiki locally