Eyeon:Script/Reference/Libraries/os/time

From VFXPedia

< Eyeon:Script | Reference | Libraries | os
Revision as of 14:01, 9 December 2006 by Peter (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

OS : os.time

Arguments

os.time([t] )

  • t (optional, table)

A table specifying the format to return the time in.

Returns

Returns the current time, as the number of seconds elasped since a set start time (the system 'epoch').

Remarks

If the argument 't' is not provided, the current time is used. Otherwise the date provided by table t is used, where t must have the fields 'year', 'month', 'day' and may also have the fields 'hour', 'min', 'sec', and 'isdst'.

This function is useful for implementing timers, or as a seed for the date() function.

Requirements

  • eyeonScript 5.0
  • Fusion 5.0

Examples

result, errormsg = os.rename(arg[1], arg[2])

if result == nil then

print(errormsg)

else

print("Renamed file".. arg[1] .. " to "..arg[2])end


Tips for time (edit)

EyeonTips:Script/Reference/Libraries/os/time