Pages

Javascript Date getUTCSeconds() Method

Description:

Javascript date getUTCSeconds() method returns the seconds in the specified date according to universal time. The value returned by getUTCSeconds is an integer between 0 and 59.

Syntax:

Date.getUTCSeconds()
Here is the detail of parameters:
  • NA

Return Value:

Returns the seconds in the specified date according to universal time.

Example:

The following example prints the seconds portion of the current time to the variable hrs.
<html>
<head>
<title>JavaScript getUTCSeconds Method</title>
</head>
<body>
<script type="text/javascript">
   var dt = new Date();
   document.write("getUTCSeconds() : " + dt.getUTCSeconds() ); 
</script>
</body>
</html>
This will produce following result:
getUTCSeconds() : 14 
 
+JavaScript +JavaScript Frameworks Links +Javascript Development 
+JavaScript's and More, Software and Marketing +JavascriptU +JavaScriptOn 
+Javascript Problems +JavaScriptOn 
 +javaScript is a creek in West Virginia in the summe  
+enJineS +JavascriptU +Javascript Tutor  
  
 

No comments:

Flag Counter
| Copyright © 2013 Remote Tutor