var msgtext May 1 2005 130 PM falls on localDay for var j 0 j MayDaygetUTCDay j

Var msgtext may 1 2005 130 pm falls on localday for

This preview shows page 145 - 148 out of 334 pages.

var msgtext = "May 1, 2005, 1:30 PM falls on " + localDay; for (var j = 0; j <= MayDay.getUTCDay(); j++) UTCDay = weekDay[j]; msgtext = msgtext + " locally, \nand on " + UTCDay + " GMT."; TheApplication().RaiseErrorText(msgtext); } Get UTC Full Year Method The Get UTC Full Year year method returns the UTC year of a date object as a four digit number. Format dateVar .getUTCFullYear() Example The following example displays 2005, the year portion of the date, followed by the GMT equivalent, which can include the same value: var aDate = new Date("January 1, 2005 13:24:35"); TheApplication().RaiseErrorText("Local year is " + aDate.getYear() + "\nGMT year is " + aDate.getUTCFullYear());
Image of page 145
Siebel eScript Language Reference Version 8.1, Rev. A Methods Reference UTC Methods 146 Get UTC Hours Method The Get UTC Hours Method returns the UTC hour of a date object as a number from 0 through 23. For more information, see “Values for Dates and Times” on page 125 . Format dateVar .getUTCHours() Example The following example displays a value of 13, which is the hour portion of the date, followed by the GMT equivalent: var aDate = new Date("May 1, 2005 13:24:35"); TheApplication().RaiseErrorText("Local hour is “ + aDate.getHours() + "\nGMT hour is " + aDate.getUTCHours()); Get UTC Milliseconds Method The Get UTC Milliseconds method returns the UTC millisecond of a date object as a number from 0 through 999. For more information, see “Values for Dates and Times” on page 125 . Format dateVar .getUTCMilliseconds() Get UTC Minutes Method The Get UTC Minutes method returns the UTC minute of a date object as a number from 0 through 59. For more information, see “Values for Dates and Times” on page 125 . Format dateVar .getUTCMinutes() Example The following example displays a value of 24, which is the minutes portion of the date, followed by the GMT equivalent: var aDate = new Date("May 1, 2005 13:24:35"); TheApplication().RaiseErrorText("Local minutes: " + aDate.getMinutes() + "\nGMT minutes: " + aDate.getUTCMinutes());
Image of page 146
Methods Reference UTC Methods Siebel eScript Language Reference Version 8.1, Rev. A 147 Get UTC Month Method The Get UTC Month method returns the UTC month of a date object as a number from 0 through 11. For more information, see “Values for Dates and Times” on page 125 . Format dateVar .getUTCMonth() Example The following example displays a value of 5, which is the month portion of the date determined by adding 1 to the value that the Get UTC Month method returns. This value is followed by the GMT equivalent which is determined by adding 1 to the value that the Get UTC Month method returns: var aDate = new Date("May 1, 2005 13:24:35"); var locMo = aDate.getMonth() + 1; var GMTMo = aDate.getUTCMonth() + 1 TheApplication().RaiseErrorText("Local month: " + locMo +"\nGMT month: " + GMTMo); Get UTC Seconds Method The Get UTC Seconds method returns the UTC second of a date object as number from 0 through 59. For more information, see “Values for Dates and Times” on page 125 .
Image of page 147
Image of page 148

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