home *** CD-ROM | disk | FTP | other *** search
Wrap
getMonth method Syntax dateObj.getMonth() where dateObj is a date object. Description Returns the month in the date object, an integer between zero and eleven. Zero corresponds to January, one to Februrary, and so on. Applies to Date Examples The second statement below assigns the value 11 to the variable month, based on the value of the date object Xmas95. Xmas95 = new Date("December 25, 1995 23:15:00") month = Xmas95.getDate() See also xxx To be supplied. ------------------------------------------------------------------------ getSeconds method Syntax dateObj.getSeconds() where dateObj is a date object. Description Returns the seconds in the current time, an integer between 0 and 59. Applies to Date Examples The second statement below assigns the value 30 to the variable secs, based on the value of the date object Xmas95. Xmas95 = new Date("December 25, 1995 23:15:30") secs = Xmas95.getSeconds() See also xxx To be supplied. ------------------------------------------------------------------------ getTime method Syntax dateObj.getTime() where dateObj is a date object. Description Returns the numeric value for the date object. This number is the number of milliseconds since the epoch (1 January 1970 00:00:00) You can use this method to help assign a date and time to another date object. Applies to Date Examples The following example assigns the date value of theBigDay to sameAsBigDay. theBigDay = new Date("July 1, 1999") sameAsBigDay = new Date(); sameAsBigDay.setTime(theBigDay.getTime()) See also xxx To be supplied. ------------------------------------------------------------------------ getTimezoneOffset method Syntax dateObj.getTimezoneOffset() where dateObj is a date object. Description Return the time zone offset in minutes for the current locale, i.e. the difference between the local time and GMT. This value would be a constant except for daylight savings time. Applies to Date Examples x = new Date(); currentTimeZoneOffsetInHours = x.getTimezoneOffset()/60; See also xxx To be supplied. ------------------------------------------------------------------------ getYear method Syntax getyear() Description Returns the year in the date object, less 1900. Applies to Date Examples The second statement below assigns the value 95 to the variable year, based on the value of the date object Xmas95. Xmas95 = new Date("December 25, 1995 23:15:00") year = Xmas95.getYear() See also xxx To be supplied. ------------------------------------------------------------------------ go method The argument delta is an integer. If delta  is greater than zero, then it loads the URL that is that number of entries forward in the history list; otherwise, it loads the URL that is that number of entries backward in the history list. The argument string is a string. Go to the newest history entry whose title or URL contains string as a substring; substring matching is case-insensitive. Syntax go(delta | "string") Description xxx Description to be supplied. Applies to history Examples xxx Examples to be supplied. See also back, forward methods ------------------------------------------------------------------------ indexOf method Returns the index within the calling string object of the first occurrence of the specified character, starting the search at fromIndex. Syntax indexOf(character, [fromIndex]) character is the character to search for. fromIndex is the location within the calling string to start the search from, any integer from 0 to string.length() - 1. Description xxx Description to be supplied. Applies to string Examples xxx Examples to be supplied. See also charAt, lastIndexOf methods ------------------------------------------------------------------------ italics method Causes the calling string object to be italicized by surrounding it with HTML italics tags, <I>... <I> Syntax italics() NOTE: For Beta4, use I() for this method. Description xxx Description to be supplied. Applies to string Examples xxx Examples to be supplied. See also blink, bold, strike methods ------------------------------------------------------------------------ lastIndexOf method Returns the index within the calling string object of the last occurrence of the specified character. The calling string is searched backwards, starting at fromIndex. Syntax indexOf(character, [fromIndex]) character is the character to search for. fromIndex is the location within the calling string to start the search from, any integer from 0 to string.length() - 1. Description xxx Description to be supplied. Applies to string Examples xxx Examples to be supplied. See also charAt, indexOf methods ------------------------------------------------------------------------ link method Causes the calling string object to be a hyperlink by surrounding it with HTML hyperlink tags, <A HREF=...><A> Syntax link(location) The argument to the method, location, should be a valid URL. Description xxx Description to be supplied. Applies to string Examples xxx Examples to be supplied. See also anchor method ------------------------------------------------------------------------