Skip to content

stdlib_util_time

Neil Tallim edited this page Jul 14, 2015 · 1 revision

Introduction

The time namespace offers some simple time-related functions.

Provides

Functions

asctime(t)

Given a UNIX-style timestamp, t, a common string equivalent is returned: "Wed Nov 2 11:58:20 2011"

localtime()

Returns the current time as a floating-point UNIX timestamp.

utctime()

Returns the current time in UTC as a floating-point UNIX timestamp.

sleep(t)

Suspends execution for approximately t seconds, which may be a float.

Clone this wiki locally