os.date

From ComputerCraft
Jump to navigation Jump to search

os.date
Function
Syntax
os.date()
Returns string text
API os
Source CC:Tweaked

Returns a time formated string. If you give a unixtime second argument, it will use this time instead of the current time.

{

ExampleExamplePrint time and date
Prints the current time and date.
Code
print(os.date("%d.%m.%Y %H:%M"))
Output
13.02.2020 18:00