home *** CD-ROM | disk | FTP | other *** search
/ Java Internet Programming Reference Guide / Java Internet Programming Reference Guide.iso / autorun / java.dir / 00128_12c.txt < prev    next >
Encoding:
Text File  |  1996-01-12  |  5.7 KB  |  839 lines

  1. getMonth method
  2.  
  3.  
  4.  
  5. Syntax
  6.  
  7.  
  8.  
  9.  
  10. dateObj.getMonth() 
  11.  
  12.  
  13.  
  14. where dateObj is a date object.
  15.  
  16.  
  17.  
  18.  
  19.  
  20. Description
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28. Returns the month in the date object, an integer between zero and eleven. Zero corresponds to January, one to Februrary, and so on.
  29.  
  30.  
  31.  
  32.  
  33.  
  34. Applies to
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41. Date
  42.  
  43.  
  44.  
  45.  
  46.  
  47. Examples
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55. The second statement below assigns the value 11 to the variable month, based on the value of the date object Xmas95.
  56.  
  57. Xmas95 = new Date("December 25, 1995 23:15:00")
  58. month = Xmas95.getDate()
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67. See also
  68.  
  69.  
  70.  
  71.  
  72. xxx To be supplied.
  73.  
  74.  
  75. ------------------------------------------------------------------------
  76.  
  77.  
  78.  
  79.  
  80.  
  81. getSeconds method
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90. Syntax
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97. dateObj.getSeconds() 
  98.  
  99.  
  100.  
  101. where dateObj is a date object.
  102.  
  103.  
  104.  
  105.  
  106.  
  107. Description
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115. Returns the seconds in the current time, an integer between 0 and 59.
  116.  
  117.  
  118.  
  119.  
  120.  
  121. Applies to
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128. Date
  129.  
  130.  
  131.  
  132.  
  133.  
  134. Examples
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142. The second statement below assigns the value 30 to the variable secs, 
  143. based on the value of the date object Xmas95.
  144.  
  145. Xmas95 = new Date("December 25, 1995 23:15:30")
  146. secs = Xmas95.getSeconds()
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154. See also
  155.  
  156.  
  157.  
  158.  
  159. xxx To be supplied.
  160.  
  161.  
  162.  
  163. ------------------------------------------------------------------------
  164.  
  165.  
  166.  
  167.  
  168.  
  169. getTime method
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178. Syntax
  179.  
  180.  
  181.  
  182.  
  183. dateObj.getTime() 
  184.  
  185.  
  186.  
  187. where dateObj is a date object.
  188.  
  189.  
  190.  
  191.  
  192.  
  193. Description
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201. Returns the numeric value for the date object.
  202. This number is the number of milliseconds since the epoch (1 January 1970 00:00:00)
  203. You can use this method to help assign a date and time to another date object.
  204.  
  205.  
  206.  
  207.  
  208.  
  209. Applies to
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216. Date
  217.  
  218.  
  219.  
  220.  
  221.  
  222. Examples
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230. The following example assigns the date value of theBigDay to sameAsBigDay.
  231.  
  232.  
  233. theBigDay = new Date("July 1, 1999")
  234. sameAsBigDay = new Date();
  235. sameAsBigDay.setTime(theBigDay.getTime())
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243. See also
  244.  
  245.  
  246.  
  247.  
  248. xxx To be supplied.
  249.  
  250.  
  251.  
  252. ------------------------------------------------------------------------
  253.  
  254.  
  255.  
  256.  
  257.  
  258. getTimezoneOffset method
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268. Syntax
  269.  
  270.  
  271.  
  272.  
  273. dateObj.getTimezoneOffset()
  274.  
  275.  
  276.  
  277. where dateObj is a date object.
  278.  
  279.  
  280.  
  281.  
  282.  
  283. Description
  284.  
  285.  
  286.  
  287.  
  288.  
  289.  
  290.  
  291. Return the time zone offset in minutes for the current locale, i.e. the 
  292. difference between the local time and GMT. 
  293. This value would be a constant except for daylight savings time. 
  294.  
  295.  
  296.  
  297.  
  298.  
  299. Applies to
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306. Date
  307.  
  308.  
  309.  
  310.  
  311.  
  312. Examples
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319. x = new Date();
  320. currentTimeZoneOffsetInHours = x.getTimezoneOffset()/60;
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328. See also
  329.  
  330.  
  331.  
  332.  
  333. xxx To be supplied.
  334.  
  335.  
  336.  
  337. ------------------------------------------------------------------------
  338.  
  339.  
  340.  
  341.  
  342.  
  343. getYear method
  344.  
  345.  
  346.  
  347.  
  348.  
  349.  
  350.  
  351.  
  352. Syntax
  353.  
  354.  
  355.  
  356.  
  357.  
  358.  
  359. getyear()
  360.  
  361.  
  362.  
  363.  
  364.  
  365.  
  366. Description
  367.  
  368.  
  369.  
  370.  
  371.  
  372.  
  373.  
  374. Returns the year in the date object, less 1900.
  375.  
  376.  
  377.  
  378.  
  379.  
  380. Applies to
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387. Date
  388.  
  389.  
  390.  
  391.  
  392.  
  393. Examples
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.  
  401. The second statement below assigns the value 95 to the variable year, based on the value of the date object Xmas95.
  402.  
  403. Xmas95 = new Date("December 25, 1995 23:15:00")
  404. year = Xmas95.getYear()
  405.  
  406.  
  407.  
  408.  
  409.  
  410.  
  411.  
  412.  
  413. See also
  414.  
  415.  
  416.  
  417.  
  418. xxx To be supplied.
  419.  
  420.  
  421. ------------------------------------------------------------------------
  422.  
  423.  
  424.  
  425.  
  426.  
  427. go method
  428.  
  429.  
  430.  
  431.  
  432.  
  433.  
  434.  
  435. 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.
  436.  
  437.  
  438.  
  439. 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.
  440.  
  441.  
  442.  
  443.  
  444.  
  445. Syntax
  446.  
  447.  
  448.  
  449.  
  450. go(delta | "string")
  451.  
  452.  
  453.  
  454.  
  455.  
  456.  
  457. Description
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464. xxx Description to be supplied.
  465.  
  466.  
  467.  
  468.  
  469.  
  470. Applies to
  471.  
  472.  
  473.  
  474.  
  475.  
  476.  
  477. history
  478.  
  479.  
  480.  
  481.  
  482.  
  483. Examples
  484.  
  485.  
  486.  
  487.  
  488.  
  489.  
  490. xxx Examples to be supplied.
  491.  
  492.  
  493.  
  494.  
  495.  
  496. See also
  497.  
  498.  
  499.  
  500.  
  501. back, forward methods
  502.  
  503.  
  504. ------------------------------------------------------------------------
  505.  
  506.  
  507.  
  508.  
  509.  
  510. indexOf method
  511.  
  512.  
  513.  
  514.  
  515.  
  516.  
  517.  
  518. Returns the index within the calling string object of the first occurrence of the specified character, starting the search at fromIndex.
  519.  
  520.  
  521.  
  522.  
  523.  
  524. Syntax
  525.  
  526.  
  527.  
  528.  
  529. indexOf(character, [fromIndex])
  530.  
  531.  
  532.  
  533. character is the character to search for.
  534.  
  535. fromIndex is the location within the calling string to start the search from, any integer from 0 to string.length() - 1.
  536.  
  537.  
  538.  
  539.  
  540.  
  541. Description
  542.  
  543.  
  544.  
  545.  
  546.  
  547.  
  548. xxx Description to be supplied.
  549.  
  550.  
  551.  
  552.  
  553.  
  554. Applies to
  555.  
  556.  
  557.  
  558.  
  559.  
  560.  
  561. string
  562.  
  563.  
  564.  
  565.  
  566.  
  567. Examples
  568.  
  569.  
  570.  
  571.  
  572.  
  573.  
  574. xxx Examples to be supplied.
  575.  
  576.  
  577.  
  578.  
  579.  
  580. See also
  581.  
  582.  
  583.  
  584.  
  585. charAt, lastIndexOf methods
  586.  
  587.  
  588. ------------------------------------------------------------------------
  589.  
  590.  
  591.  
  592.  
  593.  
  594. italics method
  595.  
  596.  
  597.  
  598.  
  599.  
  600.  
  601.  
  602. Causes the calling string object to be italicized by surrounding it with HTML italics tags,   <I>... <I>
  603.  
  604.  
  605.  
  606.  
  607.  
  608.  
  609. Syntax
  610.  
  611.  
  612.  
  613.  
  614. italics()
  615.  
  616. NOTE: For Beta4, use I() for this method.
  617.  
  618.  
  619.  
  620.  
  621.  
  622. Description
  623.  
  624.  
  625.  
  626.  
  627.  
  628.  
  629. xxx Description to be supplied.
  630.  
  631.  
  632.  
  633.  
  634.  
  635. Applies to
  636.  
  637.  
  638.  
  639.  
  640.  
  641.  
  642. string
  643.  
  644.  
  645.  
  646.  
  647.  
  648. Examples
  649.  
  650.  
  651.  
  652.  
  653.  
  654.  
  655. xxx Examples to be supplied.
  656.  
  657.  
  658.  
  659.  
  660.  
  661. See also
  662.  
  663.  
  664.  
  665.  
  666. blink, bold, strike methods
  667.  
  668.  
  669. ------------------------------------------------------------------------
  670.  
  671.  
  672.  
  673.  
  674.  
  675. lastIndexOf method
  676.  
  677.  
  678.  
  679.  
  680.  
  681.  
  682.  
  683. 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.
  684.  
  685.  
  686.  
  687.  
  688.  
  689.  
  690. Syntax
  691.  
  692.  
  693.  
  694.  
  695. indexOf(character, [fromIndex])
  696.  
  697.  
  698.  
  699. character is the character to search for.
  700.  
  701. fromIndex is the location within the calling string to start the search from, any integer from 0 to string.length() - 1.
  702.  
  703.  
  704.  
  705.  
  706.  
  707. Description
  708.  
  709.  
  710.  
  711.  
  712.  
  713.  
  714. xxx Description to be supplied.
  715.  
  716.  
  717.  
  718.  
  719.  
  720. Applies to
  721.  
  722.  
  723.  
  724.  
  725.  
  726.  
  727. string
  728.  
  729.  
  730.  
  731.  
  732.  
  733. Examples
  734.  
  735.  
  736.  
  737.  
  738.  
  739.  
  740. xxx Examples to be supplied.
  741.  
  742.  
  743.  
  744.  
  745.  
  746. See also
  747.  
  748.  
  749.  
  750.  
  751. charAt, indexOf methods
  752.  
  753.  
  754. ------------------------------------------------------------------------
  755.  
  756.  
  757.  
  758.  
  759.  
  760. link method
  761.  
  762.  
  763.  
  764.  
  765.  
  766.  
  767.  
  768. Causes the calling string object to be a hyperlink by surrounding it with HTML hyperlink tags,  <A HREF=...><A>
  769.  
  770.  
  771.  
  772.  
  773.  
  774. Syntax
  775.  
  776.  
  777.  
  778.  
  779. link(location)
  780.  
  781. The argument to the method, location, should be a valid URL.
  782.  
  783.  
  784.  
  785.  
  786.  
  787. Description
  788.  
  789.  
  790.  
  791.  
  792.  
  793.  
  794. xxx Description to be supplied.
  795.  
  796.  
  797.  
  798.  
  799.  
  800. Applies to
  801.  
  802.  
  803.  
  804.  
  805.  
  806.  
  807. string
  808.  
  809.  
  810.  
  811.  
  812.  
  813. Examples
  814.  
  815.  
  816.  
  817.  
  818.  
  819.  
  820. xxx Examples to be supplied.
  821.  
  822.  
  823.  
  824.  
  825.  
  826. See also
  827.  
  828.  
  829.  
  830.  
  831. anchor method
  832.  
  833.  
  834. ------------------------------------------------------------------------
  835.  
  836.  
  837.  
  838.  
  839.