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.
{
|
|||
Prints the current time and date. | |||
Code | print(os.date("%d.%m.%Y %H:%M"))
|
||
Output | 13.02.2020 18:00
|
Retrieved from "https://wiki.computercraft.cc/index.php?title=Os.date&oldid=6092"