Touch Develop retirement postponed until June 22, 2019. Sign-in and access to cloud assets to be removed on May 23, 2018.Learn More..


DateTime

A combination of date and time
function (DateTime) → add days(days : Number) returns DateTime
Returns a date that adds the specified number of days to the value of this instance.
function (DateTime) → add hours(hours : Number) returns DateTime
Returns a date that adds the specified number of hours to the value of this instance.
function (DateTime) → add milliseconds(milliseconds : Number) returns DateTime
Returns a date that adds the specified number of milliseconds to the value of this instance.
function (DateTime) → add minutes(minutes : Number) returns DateTime
Returns a date that adds the specified number of minutes to the value of this instance.
function (DateTime) → add months(months : Number) returns DateTime
[not implemented] Returns a date that adds the specified number of months to the value of this instance.
function (DateTime) → add seconds(seconds : Number) returns DateTime
Returns a date that adds the specified number of seconds to the value of this instance.
function (DateTime) → add years(years : Number) returns DateTime
[not implemented] Returns a date that adds the specified number of years to the value of this instance.
function (DateTime) → date returns DateTime
Gets the date
function (DateTime) → day returns Number
Gets the day of the month
function (DateTime) → equals(other : DateTime) returns Boolean
Compares dates for equality
function (DateTime) → from now returns String
Converts into text that describes the elapsed time in a friendly way.
function (DateTime) → greater(other : DateTime) returns Boolean
Compares dates for greater
function (DateTime) → greater or equal(other : DateTime) returns Boolean
Compares dates for greater or equal
function (DateTime) → hour returns Number
Gets the hour
function (DateTime) → is invalid returns Boolean
Returns true if the current instance is useless
function (DateTime) → less(other : DateTime) returns Boolean
Compares dates for less
function (DateTime) → less or equals(other : DateTime) returns Boolean
Compares dates for less or equal
function (DateTime) → millisecond returns Number
Gets the millisecond
function (DateTime) → milliseconds since epoch returns Number
Gets the milliseconds elapsed since January 1, 1970 UTC; same as getTime() in JavaScript.
function (DateTime) → minute returns Number
Gets the minute
function (DateTime) → month returns Number
Gets the month
function (DateTime) → not equals(other : DateTime) returns Boolean
Compares dates for disequality
function (DateTime) → post to wall
Prints the date to the wall
function (DateTime) → second returns Number
Gets the second
function (DateTime) → subtract(value : DateTime) returns Number
Computes the difference between date-times in seconds
function (DateTime) → to json returns Json Object
Converts the value into a json data structure.
function (DateTime) → to local time returns DateTime
[not implemented] Converts to the local time
function (DateTime) → to string returns String
Converts a dates to a string
function (DateTime) → to universal time returns DateTime
Converts coordinated universal time
function (DateTime) → week day returns Number
Gets the day of the week (sunday = 0, monday = 1, ... saturday = 6)
function (DateTime) → year returns Number
Gets the year
function (DateTime) → year day returns Number
Gets the day of the year between 1 and 366

edit this topic bxhnifnzzy