JScript Method-getUTCMinutes method

Source: Internet
Author: User
Returns the minutes value expressed in global standard Time (UTC) in a Date object.
Dateobj.getutcminutes ()
The required option Dateobj parameter is a Date object.
Description
To get the number of minutes that are saved in local time, use the Getminutes method.
The getUTCMinutes method returns an integer that is between 0 and 59, which equals the number of minutes contained in the date object. In the following two kinds
The return value is 0: The time after the hour is shorter than 1 minutes, or the time value is not saved to the object when the Date object is created. But to be sure
The only way to determine exactly what kind of situation it is is to check both the hour and second values for 0. If these two values are both 0, then almost certainly no
There is a time saved to the Date object.
Example
The following example illustrates the use of the getUTCMinutes method.
function Utctimedemo ()
{
var d, s = "Current global standard Time (UTC) is:";
var c = ":";
D = new Date ();
S + + d.getutchours () + C;
S + + d.getutcminutes () + C;
S + + d.getutcseconds () + C;
S + + d.getutcmilliseconds ();
return (s);
}
Requirements
Version 3

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.