|
of_isweekday
|
|
Full name
|
pfc_n_cst_datetime.of_isweekday
|
Access
|
public
|
Extend of
|
boolean
|
Return value
|
boolean
|
Prototype
|
public function boolean of_isweekday(date)
|
Name
|
Datatype
|
lb_null
|
boolean
|
public function boolean of_isweekday (date ad_source);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_IsWeekday
//
// Access: public
//
// Arguments:
// ad_source Date to test.
//
// Returns: boolean
// True if the date is a weekday.
// False if the date is not a weekday.
// If any argument's value is NULL, function returns NULL.
// If any argument's value is Invalid, function returns NULL.
//
// Description: Given a date, will determine if the date is a weekday.
//
//////////////////////////////////////////////////////////////////////////////
//
// 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_source) or Not of_IsValid(ad_source) Then
boolean lb_null
SetNull(lb_null)
Return lb_null
End If
If (DayNumber(ad_source) > 1) and (DayNumber(ad_source) < 7) Then
Return True
End If
Return False
end function
Name
|
Owner
|
systemfunctions.daynumber |
systemfunctions
|
systemfunctions.isnull |
systemfunctions
|
systemfunctions.setnull |
systemfunctions
|
pfc_n_cst_datetime.of_isvalid |
pfc_n_cst_datetime
|