Einzelnen Beitrag anzeigen
Alt 31.05.2007, 16:41   #18
RKabis
Registrierter Benutzer
QTR4

E r g e b n i s / R e s u l t

Liefert die Anzahl der Tage für den nächsten Vierteltag
Return the number of days to the next quarter day

B e s c h r e i b u n g / D e s c r i p t i o n

The procedure accepts a date and returns the number of days until the
next quarter day.
The quarter days (used in leasehold / service accounts) are -
25th March
26th June
29th September
25th December
So, given a date of 20/12/1996 an integer value of 5 will be returned.

S y n t a x

Code:
value = call ('QTR4' , datefld)
P a r a m e t e r

datefld - Any valid Open Access date.

R e t u r n s

An integer number of days.

B e i s p i e l / E x a m p l e

Code:
attach 'DATEDIF'
put call ('QTR4' , sysdate) ! prints the number of days until
! the next quarter day
detach 'DATEDIF'
Q u e r v e r w e i s / R e f e r e n c e
QTR3
RKabis ist offline   Mit Zitat antworten