|
of_isvalid
|
|
Full name
|
pfc_n_cst_datetime.of_isvalid
|
Access
|
public
|
Extend of
|
boolean
|
Return value
|
boolean
|
Prototype
|
public function boolean of_isvalid(time)
|
Name
|
Datatype
|
li_hour
|
integer
|
li_minute
|
integer
|
li_second
|
integer
|
public function boolean of_isvalid (time atm_source);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_IsValid
//
// Access: public
//
// Arguments:
// adtm_source DateTime to test.
//
// Returns: boolean
// True if argument is a valid time.
// If any argument's value is NULL, function returns False.
// If any argument's value is Invalid, function returns False.
//
// Description: Given a time, will determine if the time is valid.
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 6.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.
//
//////////////////////////////////////////////////////////////////////////////
integer li_hour
integer li_minute
integer li_second
// Initialize test values.
li_hour = Hour(atm_source)
li_minute = Minute(atm_source)
li_second = Second(atm_source)
// Check for nulls.
If IsNull(atm_source) Or IsNull(li_hour) or IsNull(li_minute) or IsNull(li_second) Then
Return False
End If
// Check for invalid values.
If li_hour < 0 or li_minute < 0 or li_second < 0 Then
Return False
End If
// Passed all testing.
Return True
end function
Name
|
Owner
|
systemfunctions.hour |
systemfunctions
|
systemfunctions.isnull |
systemfunctions
|
systemfunctions.minute |
systemfunctions
|
systemfunctions.second |
systemfunctions
|