c0de 0.3.0Diese Seite auf Deutsch

c0de/time ​

The time library has real-world time and date functions and SLEEP and needs INCLUDE c0de/time.

Functions ​

  • NOW: Returns the current time.
  • MILLISECOND: Returns the milliseconds of a time (0 to 999).
  • SECOND: Returns the second of a time (0 to 59).
  • MINUTE: Returns the minute of a time (0 to 59).
  • HOUR: Returns the hour of a time (0 to 23).
  • DAY: Returns the day of the month (1 to 31).
  • MONTH: Returns the month of a time (1 to 12).
  • YEAR: Returns the year of a time, e.g. 2026.
  • WEEKDAY: Returns the day of the week, from 1 (Monday) to 7 (Sunday).
  • WEEK: Returns the ISO 8601 week of the year (1 to 53).
  • TIMER: Returns the seconds since midnight.
  • SLEEP: Pauses the program for a number of game ticks.