CA PAM::.Javascript::. getMinutes() Method

Document created by TMACUL Champion on Mar 24, 2017
Version 1Show Document
  • View in full screen mode

getMinutes()

 

Overview - definition

 

Returns the minute (from 0-59)

 

Usage

The getMinutes() method returns the minutes (from 0 to 59) of the specified date and time.

 

 

Results

A Number, from 0 to 59, with a real minute

Examples

 

var vDate = new Date();
var vMinutes = vDate.getMinutes();

 

var vdate = new Date("March 24, 2017 10:14:13");
var vhour = vdate.getMinutes();

//the results of vhour will be 14

 

function LeftZero(vtemp) {
    if (vtemp < 10) {
        vtemp = "0" + vtemp;
    }
    return vtemp;
}

function myHour() {

    var vdate = new Date();

    var vhour = LeftZero(vdate.getHours());
    var vminute = LeftZero(vdate.getMinutes());
    var vsecond = LeftZero(vdate.getSeconds());

    var result = vhour + ":" + vminute + ":" + vsecond;
}

 

 

know_more.png

Summary CA Process Automation 

Summary CA Service Management Community 

Service Desk Manager 15 days Implementation 

CABI:: Summary - BOXI for CA SDM 

Summary CA SDM Scoreboard 

 

 

Was useful, please leave your feedback!

1 person found this helpful

Attachments

    Outcomes