Format dateVar setSeconds second millisecond Table 71 describes the arguments

Format datevar setseconds second millisecond table 71

This preview shows page 140 - 144 out of 334 pages.

Format dateVar .setSeconds( second [, millisecond ]) Table 71 describes the arguments for the Set Seconds method. Set Time Method The Set Time method sets dateVar to a date that Siebel CRM determines from the value you specify in the milliseconds argument , calculated from January 1, 1970, GMT. To set a date earlier than this date, you can use a negative number. Format dateVar. setTime( milliseconds ) For more information about the milliseconds argument, see “Values for Dates and Times” on page 125 . Example The following example uses a number of milliseconds as input and converts it to a date and hour: Table 70. Arguments of the Set Month Method Argument Description month The month to set in dateVar as an integer from 0 through 11. date The date of the month argument to set in dateVar as an integer from 1 through 31. Table 71. Arguments for the Set Seconds Method Argument Description second For more information, see “Values for Dates and Times” on page 125 . millisecond
Image of page 140
Methods Reference Date and Time Methods Siebel eScript Language Reference Version 8.1, Rev. A 141 function dateBtn_Click () { var aDate = new Date; var milli = -4000; aDate.setTime(milli); var aYear = aDate.getFullYear(); var aMonth = aDate.getMonth() + 1; var aDay = aDate.getDate(); var anHour = aDate.getHours(); switch(anHour) { case 0: anHour = " 12 midnight."; break; case 12: anHour = " 12 noon."; break; default: if ( anHour > 11 ) anHour = (anHour - 12) + " P.M."; else anHour = anHour + " A.M."; } TheApplication().RaiseErrorText("The specified date is " + aMonth + "/" + aDay + "/" + aYear + " at " + anHour); } For example, if you enter a value of -345650, then this code provides the following result: The specified date is 12/31/1969 at 3 P.M. Set Year Method The Set Year method sets the year of a date object as a two digit or four digit year that you specify. Format dateVar .setYear( year )
Image of page 141
Siebel eScript Language Reference Version 8.1, Rev. A Methods Reference UTC Methods 142 Table 72 describes the arguments for the Set Year method. UTC Methods This topic describes UTC methods. It includes the following topics: “Convert UTC Date to Readable Date Method” on page 143 “Get UTC Date Method” on page 143 “Get UTC Day of Month Method” on page 144 “Get UTC Day of Week Method” on page 145 “Get UTC Full Year Method” on page 145 “Get UTC Hours Method” on page 146 “Get UTC Milliseconds Method” on page 146 “Get UTC Minutes Method” on page 146 “Get UTC Month Method” on page 147 “Get UTC Seconds Method” on page 147 “Set UTC Date Method” on page 147 “Set UTC Full Year Method” on page 148 “Set UTC Hours Method” on page 149 “Set UTC Milliseconds Method” on page 149 “Set UTC Minutes Method” on page 150 “Set UTC Month Method” on page 151 “Set UTC Seconds Method” on page 151 Table 72. Arguments for the Set Year Method Argument Description year The year to set in dateVar. You can use one of the following values in the year argument: A two digit integer for a year that occurs in the twentieth century A four digit integer for a year that does not occur in the twentieth century
Image of page 142
Methods Reference UTC Methods Siebel eScript Language Reference Version 8.1, Rev. A 143 Convert UTC Date to Readable Date Method
Image of page 143
Image of page 144

You've reached the end of your free preview.

Want to read all 334 pages?

  • Summer '16
  • Oracle
  • Type system, Siebel, Siebel eScript

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes