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 formatted date and time string. It will format the current time, unless you pass a Unix timestamp (in seconds) as the second argument.

Template:To do

{

Error creating thumbnail: Unable to save thumbnail to destination
ExamplePrint time and date
Prints the current time and date.
Code
print(os.date("%d.%m.%Y %H:%M"))
Output
13.02.2020 18:00