Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1011 B

  1. <HTML>
  2. <HEAD>
  3. <TITLE>WBEM VBScript Example</TITLE>
  4. <SCRIPT FOR="document" EVENT="onclick()" LANGUAGE ="VBScript">
  5. dateNow = Now ()
  6. datetime.SetVarDate (dateNow)
  7. document.all.info.innerText = datetime.Value
  8. document.all.info2.innerText = datetime.GetVarDate ()
  9. document.all.info3.innerText = datetime.GetVarDate (false)
  10. document.all.info4.innerText = datetime.GetFileTime ()
  11. document.all.info5.innerText = datetime.GetFileTime (false)
  12. </SCRIPT>
  13. </HEAD>
  14. <BODY>
  15. The current time in DMTF-speak is
  16. <SPAN ID="info">
  17. unknown
  18. </SPAN>.
  19. <BR/>
  20. The current time in Variant-speak is
  21. <SPAN ID="info2">
  22. unknown
  23. </SPAN>.
  24. <BR/>
  25. The nonlocal time in Variant-speak is
  26. <SPAN ID="info3">
  27. unknown
  28. </SPAN>.
  29. <BR/>
  30. The nonlocal time in FILETIME-speak is
  31. <SPAN ID="info4">
  32. unknown
  33. </SPAN>.
  34. <BR/>
  35. The local time in FILETIME-speak is
  36. <SPAN ID="info5">
  37. unknown
  38. </SPAN>.
  39. <OBJECT ID="datetime" CLASSID="CLSID:47DFBE54-CF76-11d3-B38F-00105A1F473A"></OBJECT>
  40. </BODY>
  41. </HTML>