Difference between revisions of "Os.time"

(remove language stuff)
 
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2011.6<br/>
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
+
'''Class:''' [[os]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/os|os]]<br/>
 
=== <translate>Description</translate> ===
 
<translate>Returns the current time when called without arguments, or a time representing the date and time specified by the given table. This table must have fields year, month, and day, and may have fields hour, min, sec, and isdst (for a description of these fields, see the os.date function).
 
  
 
+
=== Description ===
The returned value is a number, whose meaning depends on your system. In POSIX, Windows, and some other systems, this number counts the number of seconds since some given start time (the "epoch"). In other systems, the meaning is not specified, and the number returned by time can be used only as an argument to date and ''difftime''.</translate>
+
Returns the current time when called without arguments, or a time representing the date and time specified by the given table. This table must have fields year, month, and day, and may have fields hour, min, sec, and isdst (for a description of these fields, see the os.date function).  
 
<source lang="lua">
 
<source lang="lua">
 
(number) = os.time(table)
 
(number) = os.time(table)
 
</source>
 
</source>
=== <translate>Parameters</translate> ===
+
 
'''table''': (table) <translate>table representing a date time</translate> '''optional'''<br/>
+
'''The returned value is a number, whose meaning depends on your system. In POSIX, Windows, and some other systems, this number counts the number of seconds since some given start time (the "epoch"). In other systems, the meaning is not specified, and the number returned by time can be used only as an argument to date and ''difftime'''''
=== <translate>Return values</translate> ===
+
 
'''<translate>Returns</translate>''' (number) <translate>time in seconds</translate><br/>
+
=== Parameters ===
 +
'''table''': (table) table representing a date time '''optional'''<br/>
 +
 
 +
=== Return values ===
 +
'''Returns''' (number) time in seconds<br/>
  
 
{{Os}}
 
{{Os}}

Latest revision as of 01:26, 15 January 2021

Available since: Gideros 2011.6
Class: os

Description

Returns the current time when called without arguments, or a time representing the date and time specified by the given table. This table must have fields year, month, and day, and may have fields hour, min, sec, and isdst (for a description of these fields, see the os.date function).

(number) = os.time(table)
The returned value is a number, whose meaning depends on your system. In POSIX, Windows, and some other systems, this number counts the number of seconds since some given start time (the "epoch"). In other systems, the meaning is not specified, and the number returned by time can be used only as an argument to date and difftime

Parameters

table: (table) table representing a date time optional

Return values

Returns (number) time in seconds