Quarter()

Quarter()

Returns a number equal to the quarter in which a date falls

Syntax

      Quarter( [<dDate>] ) -> nQuarter

Argument

<dDate> Designates in which quarter the specified date lies. The default is the system date.

Returns

Quarter() returns a number that identifies the quarter in which <dDate> lies.

Description

Returns a number equal to the quarter in which ddate falls. If <ddate> is empty, the system date is employed.

Note

. When no date is specified, the function automatically uses the system date. An empty date returns 0 as a result.

Example

       Compute a delivery date:
       ? "We will deliver in quarter ", Quarter(CTOD     ("07/12/1991")), "1991"

Compliance

Quarter() is compatible with CT3’s Quarter().

Platforms

All

Files

Source is dattime2.prg, library is libct.

Seealso

BOQ(), EOQ()

2 responses to “Quarter()

  1. Pingback: Harbour Date & Time Functions | Viva Clipper !

  2. Pingback: Harbour All Functions – Q | Viva Clipper !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.