Class JS5Date
java.lang.Object
org.fife.rsta.ac.js.ecma.api.ecma3.JSDate
org.fife.rsta.ac.js.ecma.api.ecma5.JS5Date
- All Implemented Interfaces:
JSDateFunctions, JSObjectFunctions, JS5DateFunctions, JS5ObjectFunctions
Object Boolean
- Since:
- Standard ECMA-262 3rd. Edition
-
Field Summary
Fields inherited from class JSDate
constructor, prototype -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface JS5DateFunctions
toISOString, toJSONMethods inherited from interface JSDateFunctions
getDate, getDay, getFullYear, getHours, getMilliseconds, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getUTCDate, getUTCDay, getUTCFullYear, getUTCHours, getUTCMilliseconds, getUTCMinutes, getUTCMonth, getUTCSeconds, setDate, setFullYear, setHours, setMilliseconds, setMinutes, setMonth, setSeconds, setTime, setUTCDate, setUTCFullYear, setUTCHours, setUTCMilliseconds, setUTCMinute, setUTCMonth, setUTCSeconds, toDateString, toLocaleDateString, toLocaleString, toLocaleTimeString, toTimeString, toUTCString, valueOfMethods inherited from interface JSObjectFunctions
hasOwnProperty, isPrototypeOf, propertyIsEnumerable, toString
-
Constructor Details
-
JS5Date
public JS5Date()Object Date()Creates a Date object set to the current date and time.
- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
-
JS5Date
Object Date(milliseconds)- Parameters:
milliseconds- The number of milliseconds between the desired date and midnight January 1, 1970 (UTC).- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
-
JS5Date
Object Date(datestring)- Parameters:
datestring- A single argument that specifies date and optionally, the time as a string. The string should be in a format accepted by Date.parse()- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
-
JS5Date
public JS5Date(JSNumber year, JSNumber month, JSNumber day, JSNumber hours, JSNumber minutes, JSNumber seconds, JSNumber ms) Object Date(year, month, day, hours, minutes, seconds, ms)- Parameters:
year- The year in a four digit format. e.g. 2011 for the year 2011month- The month specified as a single integer from 0 (January) to 11 (December)day- The day of the month as an integer between 1 to 31.hours- Optional hour value, specified as an integer from 0 (midnight) to 23 (11pm).minutes- Optional minute value, specified as an integer from 0 to 59.seconds- Optional second value, specified as an integer from 0 to 59.ms- Optional milliseconds value, specified as an integer from 0 to 999.- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
-
-
Method Details
-
now
function now() return the current time in milliseconds.- Since:
- Standard ECMA-262 5th. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-