now

Top  Previous  Next

This function creates a date object set to the current local time.

Definition

myDate = date.now()

 

Name

Type

Description

myDate

Date Object

The date object set to the current local time.

 

Example

myDate = date.now()

print(myDate)

 

prints

 

Mon Oct 15 9:10:15 2012

Related

Time object

Date object

Availability

Lua