These methods are part of the date object instead of an instance of the Date

These methods are part of the date object instead of

This preview shows page 125 - 128 out of 334 pages.

These methods are part of the date object instead of an instance of the Date object. Caution About Using Two Digit Dates Siebel eScript uses the ECMAScript standard for two digit dates, which might be different from the formats that other applications use, including Siebel CRM. CAUTION: To prevent a year 2000 (Y2K) problem, avoid using a two digit date in your Siebel eScript code. Values for Dates and Times Table 61 describes values for months, days, hours, minutes, and seconds. Many Siebel eScript objects use these same values. Table 61. Values for Months, Days, Hours, Minutes, and Seconds Time Period Description month A month, specified as an integer from 0 to 11. January is 0 and December is 11. day A day of the month, specified as an integer from 1 to 31. The first day of the month is 1. The last day of the month is 28, 29, 30, or 31. hours An hour, specified as an integer from 0 to 23. Midnight is 0 and 11 PM is 23.
Image of page 125
Siebel eScript Language Reference Version 8.1, Rev. A Methods Reference Date and Time Methods 126 About the Date Constructor The Date constructor instantiates a new date object. If you include an argument, then it returns a date object that includes the date according to the argument. To create a date object that Siebel CRM sets to the current date and time, you can use the new operator as you would with any object. Format A var dateVar = new Date; Format B var dateVar = new Date( milliseconds ); Format C var dateVar = new Date( dateString ); Format D var dateVar = new Date( year, month, day ); Format E var dateVar = new Date( year, month, day, hours, minutes, seconds ); minutes A minute, specified as an integer from 0 to 59. The first minute of an hour is 0 and the last minute of an hour is 59. seconds A second, specified as an integer from 0 to 59. The first second of a minute is 0 and the last second of a minute is 59. millisecond A millisecond, specified as an integer from 0 through 999. The first millisecond is 0 and the last millisecond is 999. Table 61. Values for Months, Days, Hours, Minutes, and Seconds Time Period Description
Image of page 126
Methods Reference Date and Time Methods Siebel eScript Language Reference Version 8.1, Rev. A 127 Arguments Table 62 describes arguments for the date constructor. Usage for Format B Format B returns a date and time that includes the number of milliseconds since midnight, January 1, 1970. Using milliseconds is a standard way of including dates and times. It simplifies calculating the amount of time between one date and another. It is recommended that you configure Siebel CRM to convert a date to milliseconds before it performs a calculation on the date. Usage for Format C Format C accepts a string that includes a date and an optional time. The format for this string includes one or more of the following fields, in any order: month day, year hours:minutes:seconds For example: "October 13, 1995 13:13:15" This string specifies a date of October 13, 1995 and a time of one thirteen and 15 seconds PM. In a 24 hour format, this value is 13:13 hours and 15 seconds. The time specification is optional. If you include it, then the seconds specification is optional.
Image of page 127
Image of page 128

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