Date

[lide.base] ^1.0 lide.classes.date 1.0

Date class represents an absolute moment in time.


Constructor

Date class constructors:

object Date:new { number Day, string Month, number Year }

Class Methods

These methods are defined by this class.


Date:getYear

Returns the year in the given timezone (local one by default).
string Date:getDescString()

Date:getDay

Returns the day in the given timezone (local one by default).
function Date:getDay()

Date:setDay

Sets the day without changing other date components.
function Date:getDay()

Date:getMonth

Returns the month in the given timezone (local one by default).
function Date:getMonth()

Date:setMonth

Sets the month without changing other date components.
function Date:getMonth()

Date:setYear

Sets the year without changing other date components.
void Date:setYear()

Date:getFirstMonthDay

Gets the first month day.
void Date:getFirstMonthDay()

Date:getLastMonthDay

Gets the last month day.
void Date:getLastMonthDay()

Date:toString

Convert date object to string
void Date:toString()