Search
 
SCRIPT & CODE EXAMPLE
 

LUA

os.date lua

--Get's the current time

--Examples
print (os.date ("%x")) --> 25/04/07
print (os.date ("%c")) --> 25/04/07 10:10:05
print (os.date ("%A, %m %B %Y")) --> Wednesday, 04 April 2007

t = os.date ("*t") --> produces a table like this:

  t.sec=18
  t.min=13
  t.hour=10
  t.day=25
  t.month=4
  t.year=2007
  t.wday=4
  t.yday=115
  t.isdst=false
Comment

PREVIOUS NEXT
Code Example
Lua :: roblox lua gui drag 
Lua :: lua float to int 
Lua :: roblox studio lua for loop 
Lua :: luau table.find() 
Lua :: roblox random brick colour 
Lua :: creating new functions using script roblox 
Lua :: lua find key in table 
Lua :: grepper lua 
Lua :: do while lua 
Lua :: replace part of string lua 
Lua :: what is lua used for 
Lua :: print a table in lua 
Lua :: roblox studio rain 
Lua :: lua string replace / remove 
Lua :: lua unpack 5.4 
Lua :: wails build 
Lua :: insert item array pico8 
Lua :: lua how to default value if nil 
Matlab :: if directory exist matlab 
Matlab :: how to read dat file in matlab 
Matlab :: cumprod matlab 
Basic :: vscode unindent 
Basic :: whats up 
Elixir :: elixir hello world 
Elixir :: elixir enum chunk_every 
Scala :: scala string to boolean 
Scala :: repartition in spark scala 
Excel :: excel formula update insert row column 
Perl :: perl do while loop 
Pascal :: pascal pause until key is pressed 
ADD CONTENT
Topic
Content
Source link
Name
6+9 =