|
of_weeksafter
|
|
Full name
|
pfc_n_cst_datetime.of_weeksafter
|
Access
|
public
|
Extend of
|
long
|
Return value
|
long
|
Prototype
|
public function long of_weeksafter(date,date)
|
Name
|
Datatype
|
ll_null
|
long
|
public function long of_weeksafter (date ad_start, date ad_end);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_WeeksAfter
//
// Access: public
//
// Arguments:
// ad_start Starting date.
// ad_end Ending date.
//
// Returns: Long
// Number of whole weeks between the two dates.
// If any argument's value is NULL, function returns NULL.
// If any argument's value is Invalid, function returns NULL.
//
// Description: Given two dates, will determine the number of whole
// weeks between the two.
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 5.0 Initial version
//
//////////////////////////////////////////////////////////////////////////////
//
// Copyright © 1996-1997 Sybase, Inc. and its subsidiaries. All rights reserved.
// Any distribution of the PowerBuilder Foundation Classes (PFC)
// source code by other than Sybase, Inc. and its subsidiaries is prohibited.
//
//////////////////////////////////////////////////////////////////////////////
//Check parameters
If IsNull(ad_start) or IsNull(ad_end) or &
Not of_IsValid(ad_start) or Not of_IsValid(ad_end) Then
long ll_null
SetNull(ll_null)
Return ll_null
End If
Return Daysafter(ad_start,ad_end) / 7
end function
Name
|
Owner
|
systemfunctions.daysafter |
systemfunctions
|
systemfunctions.isnull |
systemfunctions
|
systemfunctions.setnull |
systemfunctions
|
pfc_n_cst_datetime.of_isvalid |
pfc_n_cst_datetime
|