The Convert UTC Date to Readable Date returns a string that includes the UTC

The convert utc date to readable date returns a

This preview shows page 143 - 146 out of 334 pages.

The Convert UTC Date to Readable Date returns a string that includes the UTC date of dateVar in a format that a human can read. This string uses the following format: Day Mon dd hh:mm:ss yyyy Format dateVar .toUTCString() Example For an example, see “Convert Date and Time to String Method” on page 128 . Related Topics For more information, see the following topics: “Clib Get Date and Time Method” on page 279 “Convert Date to GMT String Method” on page 130 “Convert Date and Time to String Method” on page 128 Get UTC Date Method The Get UTC Date method returns an integer that includes the number of milliseconds before or after midnight January 1, 1970 of the date and time that you specify. To call this method, you use the date constructor rather than a variable. This method interprets the arguments as referring to GMT time. For more information, see “Values for Dates and Times” on page 125 . Format Date.UTC( year, month, day, [ , hours [ , minutes [ , seconds ]]]) Table 73 describes the arguments for the Get UTC Date method. Table 73. Arguments for the Get UTC Date Method Argument Description year An integer that contains the year. To represent a year that occurs in the twentieth century, you can use two digits. For more information, see “Caution About Using Two Digit Dates” on page 125 .
Image of page 143
Siebel eScript Language Reference Version 8.1, Rev. A Methods Reference UTC Methods 144 Example The following example uses the Get UTC Date method: function clickme_Click () { var aDate = new Date(Date.UTC(2005, 1, 22, 10, 11, 12)); TheApplication().RaiseErrorText("The specified date is " + aDate.toUTCString()); } This example provides the following result: The specified date is Sat Jan 22 10:11:12 2005 GMT Related Topics For more information, see “About the Date Constructor” on page 126 . Get UTC Day of Month Method The Get UTC Day of Month method returns the UTC day of the month of dateVar as a number from 1 to 31. For more information, see “Values for Dates and Times” on page 125 . Format dateVar .getUTCDate() Example The following example displays 1, the hour portion of the date, followed by the GMT equivalent, which can include the same value: var aDate = new Date("May 1, 2005 13:24:35"); TheApplication().RaiseErrorText("Local day of the month is " + aDate.getHours() +"\nGMT day of the month is " + aDate.getUTCHours()); month For more information, see “Values for Dates and Times” on page 125 . day hours minutes seconds Table 73. Arguments for the Get UTC Date Method Argument Description
Image of page 144
Methods Reference UTC Methods Siebel eScript Language Reference Version 8.1, Rev. A 145 Get UTC Day of Week Method The Get UTC Day of Week method returns the UTC day of the week of a date object as a number from 0 through 6. For more information, see “Values for Dates and Times” on page 125 . Format dateVar .getUTCDay() Example The following example displays the day of the week for May 1, 2005 in local time and in UTC time: function Button2_Click () { var localDay; var UTCDay; var MayDay = new Date("May 1, 2005 13:30:35"); var weekDay = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"); for (var i = 0; i <= MayDay.getDay();i++) localDay = weekDay[i];
Image of page 145
Image of page 146

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