Format dateVar getUTCSeconds Set UTC Date Method The Set UTC Date method sets

Format datevar getutcseconds set utc date method the

This preview shows page 147 - 150 out of 334 pages.

Format dateVar .getUTCSeconds() Set UTC Date Method The Set UTC Date method sets the UTC day of a date object to a number from 1 through 31 according to the value you set in the dayOfMonth argument. Format dateVar .setUTCDate( dayOfMonth ) Table 74 describes the arguments for the Set UTC Date method. Table 74. Arguments for the Set UTC Date Method Argument Description dayOfMonth The day of the UTC month to set in dateVar as an integer from 1 through 31. For more information, see “Values for Dates and Times” on page 125 .
Image of page 147
Siebel eScript Language Reference Version 8.1, Rev. A Methods Reference UTC Methods 148 Set UTC Full Year Method The Set UTC Full Year method sets the UTC year of a date object to a four digit year that you specify in the year argument. Format dateVar .setUTCFullYear( year [, month [, date ]]) Table 75 describes the arguments for the Set UTC Full Year method. Example The following example does the following work: To assign the date of the 2000 summer solstice, it uses the Set UTC Full Year method To assign time to a date object, it uses the Set UTC Hours method Determines the local date and displays it This example uses the following code: function dateBtn_Click () { var Mstring = " A.M., Standard Time."; var solstice2K = new Date; solstice2K.setUTCFullYear(2000, 5, 21); solstice2K.setUTCHours(01, 48); var localDate = solstice2K.toLocaleString(); var pos = localDate.indexOf("2000") var localDay = localDate.substring(0, pos - 10); var localHr = solstice2K.getHours(); if (localHr > 11 ) { localHr = (localHr - 12 ); Mstring = " P.M., Standard Time."; } var localMin = solstice2K.getMinutes(); Table 75. Arguments for the Set UTC Full Year Method Argument Description year The UTC year to set in dateVar as a four digit integer. You must express the year in four digits. month As an option, you can use the month argument and the date argument to set the month and date of the year. For more information, see “Values for Dates and Times” on page 125 . date
Image of page 148
Methods Reference UTC Methods Siebel eScript Language Reference Version 8.1, Rev. A 149 var msg = "In your location, the solstice is on " + localDay + ", at " + localHr + ":" + localMin + Mstring; TheApplication().RaiseErrorText(msg); } This example produces the following result: In your location, the solstice is on Tue Jun 20, at 6:48 P.M., Standard Time. Set UTC Hours Method The Set UTC Hours method sets the UTC hour of a date object to a specific hour of a 24-hour clock as a number from 0 through 23. As an option, you can also set the UTC minute, second, and millisecond. Format dateVar .setUTCHours( hour [, minute [, second [, millisecond ]]]) Table 76 describes the arguments for the Set UTC Hours method. Example For an example, see “Set UTC Full Year Method” on page 148 . Set UTC Milliseconds Method The Set UTC Milliseconds method sets the UTC millisecond of a date object to a date expressed in milliseconds relative to the UTC equivalent of the system time. The value of dateVar becomes equivalent to the number of milliseconds from the UTC equivalent of the time on the system clock.
Image of page 149
Image of page 150

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

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors